System.out not flushing
问题 I have a java application that takes input via a Scanner reading System.in, and gives output via System.out. The scanner is always active, it does not terminate without using Ctrl+C via the terminal or ending the process in an IDE. I'm running into some behavior that leads me to believe System.out is not flushing properly. In my code there are the lines: System.out.print(",\\" + '\n'); System.out.print(" " + someString); (someString does not contain a newline character) When I execute this