what is a difference between a print () and println () method?
Answers
Answered by
9
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.
Explanation:
hope its help✌️✌️
plz mark me as brainliest ❣️❣️
Answered by
6
Difference between print() and println() in Java
As we know in Java these both methods are primarily used to display text from code to console. ... The prints method simply print text on the console and does not add any new line. While println adds new line after print text on console.
plz thank me
i want it badly
Similar questions