0
How to have no line break with for/while loops in Java?
So if I do this code: int x = 0; for(x=0;x<5;x++){ System.out.println(x) } This outputs 1 2 3 4 But I want 1 2 3 4 in Java how to do it?
1 Respuesta
+ 4
System.out.print(x + " ") ;
So if I do this code: int x = 0; for(x=0;x<5;x++){ System.out.println(x) } This outputs 1 2 3 4 But I want 1 2 3 4 in Java how to do it?