What is the difference between system.out.println and system. out. print?
Answers
Answered by
1
if you want to print different statements in different line then you will write system.out.println and if you want to print different statements in one line then you will write system.out.print
Answered by
1
println method prints the current line and moves the cursor to the next line.
the print method doesn't move down the cursor to the next line.
the print method doesn't move down the cursor to the next line.
Similar questions