Popular Post

Posted by : Unknown Friday, April 24, 2015

What you need:


When you're done installing the JDK and JCreator and done ,
create a new java file:
Click the File menu
New --> File...
or simply hold the Control Key then press N (Ctrl+N)

then a File wizard will appear,
type in the name (note: the name will serves as the class for our java program), and click Finish.

Once you're done creating a new java file,
Lets get started coding for our First Java Program!!

Just type in the codes you needed to start a new java program:


  • public class sampleJava - sampleJava is our class
  • public static void main(String[] args) - the class sampleJava runs only the inputted statements, functions and methods inside the main method.
  • System.out.println("Hello World!!!"); - the System.out.println() outputs the inputted string or integer.
Once you're done typing you can run now the file by:
clicking the Run menu then, Run Project
or simply press the F5 Key on your keyboard
or you can click the Play button encircled on the picture above.

Click here for part 2

HAVE FUN CREATING YOUR FIRST JAVA PROGRAM!!!

Leave a Reply

Subscribe to Posts | Subscribe to Comments

- Copyright © YourLounge - Absolute Newbie - Powered by Blogger - Designed by Tongkayla -