Java System out Field
Example
Print text with System.out:
public class Main {
public static void main(String[] args) {
System.out.println("Hello World");
System.out.print("I will print on the same line.");
}
}
Definition and Usage
The System.out field is the standard output stream. Text that you print with it is shown in the console (the place where the program shows its output).
Use its println(), print() and printf() methods to print text and values.
Syntax
public static final PrintStream out
Related Pages
❮ System Methods