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 the comment line starting with // TODO • Any section of code starting with /* and ending with */ is also a comment – Inside the main method, add a print statement by entering System.out.println ("Hello World!"); • 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 Project