Hello World in Java!

Reputation
0

Go to Part 1 or Part 3


Open up a text editor(notepad) or notepad++.
Coding:[/b]]
Code:
class runegear{
	public static void main(String args[]){
		System.out.println("Hello RuneGear!");
	}
}
Every thing in java starts with a class.
public static void main(String args[]) is your method header.
System.out outputs things to your computer.
Println is a built in method that will out prints a line out.(Computer, Database,etc.)
Everything else, we will learn more about in the future.

Saving it:[/b]]
Go to->File->New->Save as->Save as Java Source File.
Pictures[/b]]
2nks0tk.png


 
How about netbeans or eclipse? :p Those are also pretty good.
 
I will be using IDE's in the next tutorial.
I am still deciding if I should use NetBeans or Eclipse.
Probably, Eclipse.

I didn't want to rush into downloading the IDE's, etc.
 
I would suggest doing voice + video tutorials if you can. Helps people much more.
 
For java the basic thing you should have it net beans.
 
I was hoping people would just use there text editor.
Part 3 will be about choosing and downloading an IDE.
Part 4 will get more into "really" coding.
 
Please do commentary if you are going to continue these tuts. I hate text.
 
Back
Top