I want to create a new variable with each run of this while loop
the syntax of loop is
while(rs.next() && i<=num)
{
String str(i)=rs.getString(1);
}
I want that with each run the value of i should be appended with str so that with each run a new string variable is created like str1(for 1st run),str2(for 2nd run) and so on.Can anyone help me?