If I want to print a value of counter I but all in the same line, how can I do it? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

If I want to print a value of counter I but all in the same line, how can I do it?

printing format

10th Sep 2017, 10:56 PM
Abdelrahman Hamoda
Abdelrahman Hamoda - avatar
1 Answer
+ 1
P R I N T L N , see L N ? it means line (new line) , P R I N T instead for same line. and manually System.out.println() for new line.
11th Sep 2017, 11:25 PM
Mikhael Anthony
Mikhael Anthony - avatar