Step 3: Creating a Simple Java Program

Create Program
1. Go to Start pane>All Programs > Accessories> Notepad.exe
2 Copy and paste the following exactly:
public class helloworld
public static void main(String[] args)

System.out.println("Hello World!");

3. a.Save file as: helloworld.java 
     b.Make sure "save as type" under where you typed the file name as "All Files" (as opposed to the default "Text-File").
      c. You want to save your java file where  the Command Prompt  is set to open at.*

*Such as C:\Users\MyUserName 

About This Instructable


9 favorites


More by James Russell: Programing with Java using Command Prompt
Add instructable to: