System.out.println
public static void main(String[] args){
System.out.println("Hello World");
}
Vails
public static void main(String[] args){
System.out.println("Hello World");
}
public class Main
{
public static void main(String[] args) {
System.out.println("Java Print");
}
}
System.out.println("simple message");
public class Something {
public static void main(String args[]) {
Scanner s = new Scanner(System.in);
char c1,c2;
c1 = s.findWithinHorizon(".", 0).charAt(0);
c2=s.findWithinHorizon(".", 0).charAt(0);
System.out.print(c1);
System.out.print(c2);
s.close();
}
}
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");
}
}