The only difference between println
and print
method is that println
throws the cursor to the next line after printing the desired result whereas print
method keeps the cursor on the same line.
4
solved System.out.print vs. System.out.println (Last sentence)