Lab 2 Hello Personalized - MDHSRobotics/TeamWiki GitHub Wiki

Home / References / [Introduction to Programming - Part 1](Introduction to Programming - Part 1)

Lab 2 - Hello (personalized)

  1. Use the tutorialspoint online editor It will load with the famous Hello World example already filled in

  2. Change the content of the main method as indicated below

    Feel free to change the content of the name string to be your own name

  3. Click on compile and then click on execute

  4. A personalized Hello message will be printed and will reflect the value that you initialized the name variable to.

     public static void main(String []args){
        String name = "Monarch";
        System.out.println("Hello "+name);
     }