October 2011
Beginner
432 pages
10h 18m
English
When NetBeans creates a new project, it sets up all the necessary files and folders and creates the main class. Figure A.3 shows the first class in your project, Spartacus.java, open in the source editor.
Figure A.3. The NetBeans source editor.
Spartacus.java is a bare-bones Java class that consists only of a main() method. All the light gray lines in the class are comments that exist to explain the purpose and function of the class. Comments are ignored when the class is run.
To make the new class do something, add the following line of code on a new line right below the comment // TODO code application logic here
Read now
Unlock full access