Does anyone know how I can print out to the console on the same line using Java? ie. to show a percentage rising?
For example:
System.out.println(pc) would do:
1
2
3
4
System.out.print(pc) would do:
1234
But I want to keep it on the same line so I can only see one figure updating. Do I have to use backspace or something?
For example:
System.out.println(pc) would do:
1
2
3
4
System.out.print(pc) would do:
1234
But I want to keep it on the same line so I can only see one figure updating. Do I have to use backspace or something?
Comment