Java - Tutorial #1 [Beginner]

Questions/Tutorials for any programming language not covered in other sections.
1 post Page 1 of 1
Contributors
User avatar
DrNayr
New Member
New Member
Posts: 14
Joined: Thu May 16, 2013 9:06 am

Java - Tutorial #1 [Beginner]
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;
1 post Page 1 of 1
Return to “Misc”