Java SE API
PrintStream.print(String)
Writes a string without appending a line separator. A null string is represented by the text null.
Formal Syntax & Structure
java syntaxjava
public void print(String s)Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| s | String | Text to print. |
Return Value
void
No returned value.
Working Example
Example Snippetjava
public class Main { public static void main(String[] args) { System.out.print("A"); System.out.println("B"); }}