How to keep my user input on the same line after an output?

Use print() instead of println();

System.out.println() automatically adds a newline character. That what the ln means.

Leave a Comment