Hi.
I try to get the following code to run:
for (int i = 0; i < 1; i++) { str = Integer.toString(i); if (i < 10) { str = "0" + str; } for (int j = 0; j < 1; j++) { str2 = Integer.toString(j); if (j < 10) { str2 = "0" + str2; } strfinal = str2+str; grid2.add(strfinal); } }
As you can see, I will only add 1 value to grid2, which is the String 0000. But when I compare it to "0000" I get a 'false' return. Can someone please help me out? Thank you.