Both methods are used to display the results on the monitor. Print( ) method displays the result and then retains the cursor in the same line, next to the end of the result. println( ) displays the result and then throws the cursor to the next line.
print() +\n = println()
No comments:
Post a Comment