Using print & println to display strings on the in Java

Опубликовано: 10 Июнь 2023
на канале: Logic Lambda
174
1

System.out.print prints a string to the output, while System.out.println prints a string and a newline character (\n) automatically after the string

0:10 - Printing a string using System.out.print()
0:40 - Printing a string using System.out.println()
1:00 - Using println with no parameters
2:05 - Some considerations about formatting with print
2:15 - Printing a newline character (\n) using System.out.print()
3:12 - More examples of how to get newlines in your output