Unformatted text preview: New Java Class window: – For Source folder, enter Lab1 – For Name, enter HelloWorld – For Which method stubs would you like to create? , select public static void main(String args) – Click the Finish button • In the HelloWorld.java file, do the following: – Remove comment lines which are ones starting with // or any section of code starting with /* and ending with */ – Inside the main method, add a print statement by entering System.out.println ("Hello World!"); – Add more print statements for each of steps from your instruction list. • Save your file by selecting the File Save options or clicking the File Save icon. • To run your application, right-click on your class in the Package Explorer and select Run As Java Application or select the Run Run As Java Application options. • The Console view should appear at the bottom and display Hello World!...
View Full Document
- Spring '08
- English-language films, new Java class, Java Project icon, New Class icon, Java Project options