Creating your first java program!
Page 1 of 1 • Share •
Creating your first java program!
First you need the JDK and eclipse:
Search them online it wont let me paste links
Open it up and start a new java project by clicking file>new java project
Then right click on your project code area and click new class.
name your class apples.
now lets start.
Now lets start to printing tihngs.
System.out.println("");
that print whatevers in the "" on a new line.
NOTE: end every line of code with a semi colon ;
Now lets start.
Now find the compile and run button and click it.
If you did it correctly a screen should pop up and say
Hello Word!
Search them online it wont let me paste links
Open it up and start a new java project by clicking file>new java project
Then right click on your project code area and click new class.
name your class apples.
now lets start.
- Code:
class apples{
}
Now lets start to printing tihngs.
System.out.println("");
that print whatevers in the "" on a new line.
NOTE: end every line of code with a semi colon ;
Now lets start.
- Code:
class apples{
public static void main(String[] args){
System.out.println("Hello World!");
}
}
Now find the compile and run button and click it.
If you did it correctly a screen should pop up and say
Hello Word!
Last edited by breakyorself on Wed Oct 26, 2011 9:28 am; edited 2 times in total

breakyorself- Member
- Posts: 60
Join date: 2011-10-20
Re: Creating your first java program!
breakyorself wrote:First you need the JDK and eclipse:
Search them online it wont let me paste links
Open it up and start a new java project by clicking file>new java project
Then right click on your project code area and click new class.
name your class apples.
now lets start.
- Code:
class apples{
}
Now lets start to printing tihngs.
System.out.println("");
that print whatevers in the "" on a new line.
NOTE: end every line of code with a semi colon ;
Now lets start.
- Code:
class apples{
System.out.println("Hello World!");
}
Now find the compile and run button and click it.
If you did it correctly a screen should pop up and say
Hello Word!
1 nice thenewboston ripoff 2. you forgot
- Code:
public static void main(String args[]) {
}
TheOnly1ne- Member
- Posts: 10
Join date: 2011-10-20
Location: I'm in your window.
Re: Creating your first java program!
TheOnly1ne wrote:
1 nice thenewboston ripoff 2. you forgot
- Code:
public static void main(String args[]) {
}
Not everyone learns from thenewboston, most people take classes or read up on this, it is the most basic of Java.

Jack_The_Miner- Member
- Posts: 1
Join date: 2011-10-19
Location: That place.
Re: Creating your first java program!
Thanks for agreeing with me Jack .

breakyorself- Member
- Posts: 60
Join date: 2011-10-20
Re: Creating your first java program!
well, it's the general lesson that people get taught. you can look up other people and they'll show you the EXACT same thing
jesshankin22- Member
- Posts: 47
Join date: 2011-10-25
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum





