Ur Account trainer
Active Member

Hello and welcome to a basic java tutorial. I will show and explain how to make an extremely basic java program. The programming were will be creating is a quick out print to the console. I will be creating more advanced java tutorials later on.
So first were are going to make a new class, known as a new document.
Create your packaging if you do not know what this is, this would be a great website to go http://www.jarticles.com/package/package_eng.html
That currently does nothing lets create a main method (When creating a new program in java you was always need a main method in one of your classes)
So let’s make a main method
And again that does currently nothing, so let’s add content into that method I’m going to make it out print onto the console.
So are main method should look something like this
So let’s put that into are full class this what it should look like
You should go compiler it and run it (if you don’t know how just follow this
small tutorial http://www.horstmann.com/bigj/help/compiler/tutorial.html )
Thank you for looking at the tutorial hoped you understand ask me any questions, i will try to answer the best I can.
I will be creating more advanced tutorials soon, how to make a gui, making a basic calculator, making gui buttons work and allot more.
Thanks again
So first were are going to make a new class, known as a new document.
Create your packaging if you do not know what this is, this would be a great website to go http://www.jarticles.com/package/package_eng.html
Code:
package Start.chat;
public class StartChat {
}
That currently does nothing lets create a main method (When creating a new program in java you was always need a main method in one of your classes)
So let’s make a main method
Code:
public static void main (String args[]) {
}
And again that does currently nothing, so let’s add content into that method I’m going to make it out print onto the console.
Code:
System.out.println("Hello ");
System.out.println("this is how to print text onto the console");
So are main method should look something like this
Code:
public static void main (String args[]) {
System.out.println("Hello ");
System.out.println("this is how to print text onto the console");
}
So let’s put that into are full class this what it should look like
Code:
package Start.chat;
public class StartChat {
public static void main (String args[]) {
System.out.println("Hello ");
System.out.println("this is how to print text onto the console");
}
}
small tutorial http://www.horstmann.com/bigj/help/compiler/tutorial.html )
Thank you for looking at the tutorial hoped you understand ask me any questions, i will try to answer the best I can.
I will be creating more advanced tutorials soon, how to make a gui, making a basic calculator, making gui buttons work and allot more.
Thanks again

