Java SE API
PrintStream.println(int)
Writes the decimal representation of an int and terminates the current line.
Formal Syntax & Structure
java syntaxjava
public void println(int x)Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| x | int | Integer to print. |
Return Value
void
No returned value.
Working Example
Example Snippetjava
public class Main { public static void main(String[] args) { System.out.println(23); }}