JavaSyntax
Print to Console
Code example
System.out.println("Hello");Prints a line to standard output.
In Java, print to console: prints a line to standard output — System.out.println("Hello");
System.out.println("Hello");System.out.println("Hello");Prints a line to standard output.
Use System.out.println("Hello");.
Use this pattern: System.out.println("Hello");
Yes. Use Copy code and adapt the example to your program.
No. The language syntax is the same across operating systems.