Do you mean something like thisThe MyClass 'method' you are talking about is a constructor. Netbeans probably creates a simple no arg constructor for you when you create a class. You can probably configure it not to do that.
Joined: Aug 05, 2005
And by the way, if you are not sure about the basic parts of the language, you are probably better off avoiding IDEs like Netbeans and using a simple text editor and the command line compiler to create your programs. IDEs do a lot of things for you automatically, which is good if you know the language, but confusing if you don't. Go thru the Java Basics Tutorial first before using an IDE. It will all make a lot more sense then
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus