print to console
Know how to print to the console (System.out)
If you want to write something to the console, you usually use this code:
System.out.println(message);The code above adds a new line after it prints message. If you don't want a new line, use the print method instead:
System.out.print(message);