This preview shows page 1. Sign up to view the full content.
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
This note was uploaded on 10/15/2008 for the course ITP 109x taught by Professor Trinagregory during the Spring '08 term at USC.
- Spring '08