Print a boolean value with printf
I assume you are running into a buffering issue, such that your program exits before your buffer flushes. When you use printf() or print() it doesn’t necessarily flush without a newline. You can use an explicit flush() or add a new-line (which will also cause a flush()) See also Buffered Streams – The Java Tutorials, Flushing Buffered Streams which says in part Some buffered … Read more