Computer Science, asked by vishal1008, 9 months ago

Difference between output statement System. out. print() and System. out. println()​

Answers

Answered by tapatidolai
1

Answer:

The println("...") method prints the string "..." and moves the cursor to a new line. The print("...") method instead prints just the string "...", but does not move the cursor to a new line. Hence, subsequent printing instructions will print on the same line.

Answered by Anonymous
5

The println("...") method prints the string "..." and moves the cursor to a new line. The print("...") method instead prints just the string "...", but does not move the cursor to a new line. Hence, subsequent printing instructions will print on the same line.

hope it is helpfull to you

so please follow me

Similar questions