java print number cursor on same line code example Example: how to print in java System.out.println("Your text here.");