public static void main(String[] args){
System.out.println("Hello World");
}
public class Main{
public static void main(String[] args) {
System.out.println("Hello World of Java!!");
}
}
System.out.print(<string>); //prints in the same line as the previous print
System.out.println(<string>); //prints in a new line
// Example
System.out.print("This ");
System.out.print("will ");
System.out.print("be ");
System.out.print("all ");
System.out.print("in ");
System.out.print("one ");
System.out.print("line.");
System.out.println("Hello World!");
System.out.println("second line");
public static void main(String[] args){
System.out.println("Hello World"); // system should start with a capital S
} // don't forget a semi colon
public static void main(String[] args){
System.out.println("FUK!");
}