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.
Aight so the only things you really need to know for this is thatCode:public class world { public static void main(String []args){ System.out.println("Hello World"); } }
The name in red must be the same name as the .class file you just created.Code:public class world {
Whenever you run something, the first thing it looks for is main, which is here:
And then we haveCode:public static void main(String []args){
Super basic. println makes it end the line after printing the words in ""Code:System.out.println("Hello World");
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


Likes: 





Reply With Quote
Bookmarks