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.