I mean:
for (int r = 0; r < 5; r++)
sout(r+","); //jtext.setText(r + ",")
0,1,2,3,4,
since in the jtext it would print only the last 4,
I mean:
for (int r = 0; r < 5; r++)
sout(r+","); //jtext.setText(r + ",")
0,1,2,3,4,
since in the jtext it would print only the last 4,
you can do it in the following way:
It would be like this:
String cad = "";
for(int i = 1; i <= 4; i++)
cad += i + ", ";
jtext.setText(cad); // cad = "1, 2, 3, 4, "
I hope you serve, greetings.