public class Main { public static void main(String[] Args) { System.out.print("Hello MPGH!"); } }
public
class
Main
public class <Your Class Name Here>
public static void main(String []Args)
System.out.print("Hello MPGH!");
//This is a comment.
/* This is a comment */
public class Main { /* Public(I'm accessible to anyone!) class (Blueprint) Main(Name of Class) */ public static void main(String[] Args) /* That guy at the airport. */ { String MPGH = "Hello MPGH!"; /* Declaring a Variable that is a String. MPGH is Equal to the String (Or String of words) Hello MPGH! */ System.out.print(MPGH); /* Printing out the Variable MPGH which has the value "Hello MPGH!" */ } /* Ending the void */ } /* Ending the class */
int /* is an integer */
public class Main { /* Public(I'm accessible to anyone!) class (Blueprint) Main(Name of Class) */ public static void main(String[] Args) /* That guy at the airport. */ { String MPGH = "MPGH is ";/* Declaring a Variable that is a String. MPGH is Equal to the String (Or String of words) MPGH is */ int year = 12; System.out.print(MPGH + year); /* Printing out the Variable MPGH and adding the Variable year which is an int. This will result in MPGH is 12. */ } /* Ending the void */ } /* Ending the class */