output in java code example
Example 1: output java
class Output {
public static void main(String[] args) {
System.out.println("1. println ");
System.out.println("2. println ");
System.out.print("1. print ");
System.out.print("2. print");
}
}
Example 2: output statement java
System.out.println("Hello World");