Beginners Guide to Java.

Magiic™

Member
Reputation
0
Hey guys, i'm just writing a simple tutorial on starting out with Java, hope it helps some people :). (This is assuming you already have Java installed)
What you'll NEED:
JDK (Java Development Kit) - Linky
A Good development software to write all your Sauce in, I recommend eclipse You'll want the 2nd one down, choose your OS on the right.
Beginning Java For Dummies -linky

Right So let's get started ;D.

Open up Eclipse.exe (No need for installation) You should see this
eclipse1.png

Choose a location, tick the checkbox, and continue.

Once it loads, you should see
eclipse2.png


Go to File -> New -> Java Project, and this box will come up
eclipse3y.png

Name it Hello World, and hit finish.
Click the downwards arrow next to Hello World (Left hand box), right click src, New -> Class
eclipse4.png
Now this will pop up
eclipse5j.png

Call it Sauce, and hit finish.
Now, Copy Paste
Code:
public class Sauce {//The { is an opening in Java, each you open has to be shut (simply)
    public static void main(String[] args) {//This just names the procedure, main is the needed
    	//procedure in Java
        System.out.println("Hello World!"); // Display's the Words (this function is usually
        //used for debugging, but oh well)
    }
}
into the screen that pops up.
eclipse6.png
The highlighted box (scroll right) Shows the procedures/functions in this class file.

So, there's your Source, now hit Ctrl + F11, click ok on the box that comes up.
Wait a couple seconds, and you should see this at the bottom of the screen.
eclipse7.png


Read through the ebook you downloaded, that's gonna go into a lot more detail than I just did.
You can probably skip the first chapter, but read it if you're into random information.

Well, hope you liked it ;D
Magiic™

P.S. Yes, It's the same guide I wrote for HF. But it's just as good here. :smile:
 
{} the scope of local variables as well. it declare the start of a new method or constructor as well o_O. Besides fields, and variables you return. The variable lives and dies in {}. hope that helped >_>
 
Holy crap, I didn't see this thread...

I made one nearly exactly the same. I hope you understand.
 
Back
Top