Aight so ya I actually know a bit of java and I think this is where a lot of people should start out as with many coding languages.\\

So let's get started.

I recommend you use something like eclipse or jcreator i dont really like wasting my time in command prompt doing this crap.

Code:
public class world {
    public static void main(String []args){
        System.out.println("Hello World");
    }
}
Aight so the only things you really need to know for this is that
Code:
public class world {
The name in red must be the same name as the .class file you just created.



Whenever you run something, the first thing it looks for is main, which is here:
Code:
public static void main(String []args){
And then we have
Code:
System.out.println("Hello World");
Super basic. println makes it end the line after printing the words in ""
You could use print where it would continue to use the same line unless you used a newline character or another println.

Like I said, not much to it. Be sure to keep a watch out cuz I'll keep some tutorials going.

Next: variables


› See More: [Java] Hello World