Lab 2 Hello Personalized - MDHSRobotics/TeamWiki GitHub Wiki
Home / References / [Introduction to Programming - Part 1](Introduction to Programming - Part 1)
Lab 2 - Hello (personalized)
-
Use the tutorialspoint online editor It will load with the famous Hello World example already filled in
-
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
-
Click on compile and then click on execute
-
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);
}