07-13-2011, 02:00 PM
A Basic Beginners Guide!
A little background on Java:
Hidden Content
(Source:Wiki)
1.Java SE:
We need a Java Platform first, so we will download it from java.sun.com
The latest update is 6u26. Choose your Operating System and also make sure you download the correct xx-bit architecture. Ex: x86 or x64.
[To see links please register here]
2. Eclipse:
Now we need a Compiler to execute and run our Java programs.
There are two most popular compilers, Netbeans and Eclipse. I prefer Eclipse.
I would recommend you to use Eclipse IDE for Java EE Developers. Again make sure you choose the correct xx-bit architecture.
[To see links please register here]
Installing and Running Guide:
1. Extract it and run the eclipse file(as Administrator).
Hidden Content
Explanation:
1. Public class:
Hidden Content
We mostly use public class for obvious reasons. You can use any name it doesnt matter.
2. public static void main(String[] args):
Hidden Content
You can again you anything instead of args, it doesnt matter.
3. System.out.println("Some Text")
Hidden Content
Output:
Hidden Content
[/hide]
[/hide]