October 2011
Beginner
432 pages
10h 18m
English
Now that the Spartacus application has been written, compiled, and run, it’s time to break something to get some experience with how NetBeans responds when things go terribly wrong.
Like any programmer, you’ll have plenty of practice screwing things up on your own, but pay attention here anyway.
Return to Spartacus.java in the source editor, and take the semicolon off the end of the line that calls System.out.println() (line 17 in Listing A.1). Even before you save the file, NetBeans spots the error and displays a red alert icon to the left of the line (see Figure A.5).
Figure A.5. Flagging errors in the source editor.
Hover over ...
Read now
Unlock full access