I have the following code...
String t = " ";
for(int l=0; l<=5; l++){
t = "Num: " + l + "\n";
}
VarPrueba.setText(t);
I am wanting to loop through a set of numbers, and generate a String that lists them all at the end. The output should be something like this...
1
2
3
4
5
Could someone please help me understand how to correct my code.