Flush
// Flush the output buffer// Make sure everything is sent to the screen
System.out.flush();
Use this when you want to be sure the output is seen immediately
println automatically flushes, print does not
See pp.86-87 of text.
Previous slide
Next slide
Back to first slide
View graphic version