Posted By

spupy on 02/04/12


Tagged

console


Versions (?)

Java console: return to the start of line


 / Published in: Java
 

Returns the cursor on the console to the start of the line.

  1. public class Foo {
  2. public static void main(String[] args) throws Exception {
  3. System.out.print("old line");
  4. Thread.sleep(3000);
  5. System.out.print("\rnew");
  6. }
  7. }

Report this snippet  

You need to login to post a comment.