Page 1 of 1

Java - Tutorial #1 [Beginner]

Posted: Tue May 21, 2013 4:41 pm
by DrNayr
Beginner? to code in java you need an IDE and I prefer you get Eclipse, the best one so far, compile and run your java projects with a user-friendly GUI.


Objective: print a message in the console.

so first of all you need to start Eclipse then start a new Project name it anything you like, then click Next - finish now, right-click on your java project in the explorer, then add new class. for now, name it tutorial.

then open the new class and insert this code:
Code: Select all
class apples {


         public static void main(String args[]) {
                System.out.println("Hello World!");

    }

}
then click the run button on the toolbar, you will see "Hello world" printed in the console at the bottom!



This is just a hello world application, I will try to make more tutorials if i get time for it hehaho;