Creating your first java program!
4 posters
Page 1 of 1
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.
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!");
}
}
If you did it correctly a screen should pop up and say
Hello Word!
Last edited by breakyorself on Wed Oct 26, 2011 1:28 am; edited 2 times in total
breakyorself- Member
- Posts : 60
Join date : 2011-10-19
Re: Creating your first java program!
1 nice thenewboston ripoff 2. you forgotbreakyorself 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.Now find the compile and run button and click it.
- Code:
class apples{
System.out.println("Hello World!");
}
If you did it correctly a screen should pop up and say
Hello Word!
- 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!
thenewboston?
breakyorself- Member
- Posts : 60
Join date : 2011-10-19
Re: Creating your first java program!
Not everyone learns from thenewboston, most people take classes or read up on this, it is the most basic of Java.TheOnly1ne wrote:
1 nice thenewboston ripoff 2. you forgot
- Code:
public static void main(String args[]) {
}
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-19
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-24
Similar topics
» Java basic knowledge to get you started
» [1.8.1 Mod Making] Creating a new torch!
» creating a new type of tool
» [CREATING MODS] Block Manipulation
» [UnAnswered]Creating Liquids Error
» [1.8.1 Mod Making] Creating a new torch!
» creating a new type of tool
» [CREATING MODS] Block Manipulation
» [UnAnswered]Creating Liquids Error
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum