System.out.println()
A method that prints a value followed by a new line.
What does System.out.println() do in Java?
System.out.println() — A method that prints a value followed by a new line.
class Greeting {
public static void main(String[] args) {
System.out.println("Hello, Java!"); // Hello, Java!
}
}
Level: Novice · More Java terms at this level
Updated