Alright I am using Netbeans IDE 6.9.1
When I start a new project I get very lil code on the right hand side.
The very first line (of actual code, not the comments) is package javaapplication11;
Now I am watching/reading/listening to some tuts on youtube. The person on youtube is using Eclipse and can just go straight to typing
public class Main{}
I want to be able to just do that. Go straight to typing class so I can follow along with the tuts. But if I take out the package statement it wont let me continue.
Says missing package statement.
Am I just completely overlooking something?
I know this is a really really basic question that may be easy to most of you but like I said Im just learning this stuff.
Any help greatly appreciated it.
Oh and hello to all of you lol.


LinkBack URL
About LinkBacks
Reply With Quote




packages help avoid name clash of the "Titans"... oopsie... "Classes"