Hi jjb1989
System.out.
print() or System.out.
println() is the invocation of the the method
print() or
println() of the Class
PrintStream PrintStream (Java 2 Platform SE v1.4.2)
the print() method
just prints as it is, the println() always
terminates the line. If you use print() you have to care about the NewLine or so and, very important, to "
flush" the "remaining" in the output buffer with
flush(). Otherwise you may get an incomplete result (e.g. missing some characters in your printout) when your program terminates.
System.out.print( "* " ); write/print a string of an asterisk + a blank into the output buffer
System.out.print( " " ); write/print a string of "1 blank" into the output buffer
System.out.println(); insert a line-separator into output buffer and "flushes" the buffer out.
Okay?