Naming requirements and conventions ?
Hi all -- total noob here trying to get the simplest stuff to work---
I can't seem to start a Java Project from scratch on my own - even a hello world - I have been successful importing a project though (also unsuccessful importing a project ! ) I suspect is has something to do with what I am naming stuff ? Any helpful guidelines ?
On a mac using Eclipse...
Thanks !!!
Re: Naming requirements and conventions ?
I'm not sure if the problem is your code is wrong or what? But since you have eclipse, do the following.
1. On the top left, mouse over file
2. Mouse over new
3. Click 'Java Project'
4. In the text field type 'HelloWorld'
5. On the left you should see a folder icon next to Hello World
6. Double Click "Hello World"
7. Right click on src and mouse over new
8. Select Class
9.In the name field type 'HelloWorld'
In the big box in the middle, copy and paste the following
Code:
public class HelloWorld {
public static void main(String[] args){
System.out.println("Hello World");
}
}
10. At the top of the program click the green button with the play symbol, to the right of the one that looks like a helicopter
11. Watch your program work.
This is eclipse in windows 7, I'm assuming they're the same.
Re: Naming requirements and conventions ?
That set me straight ! Thank you so much !!
-Josh
Re: Naming requirements and conventions ?
Quote:
Originally Posted by
skaterboy987
10. At the top of the program click the green button with the play symbol, to the right of the one that looks like a helicopter
Erm, not that it matters much, but it is supposed to look like a bug; that button opens the 'debug perspective' so you can debug your stuff.
kind regards,
Jos
Re: Naming requirements and conventions ?