View Single Post
Old 03-16-2006, 02:39 PM   #2 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,148
Belisarius is on a distinguished road
You're problem is here:
Code:
String h_Nm = "hName"+k;
String a_name = "nm"+k;
"k" is assigned in the 'for' loop, and each time through the loop is incremented by one. As a result, h_Nm and a_name are going to reflect that. If you want one to stay the same, then you can't alter it each time through the loop.
__________________
GitS
Belisarius is online now   Reply With Quote