This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Beginning Java and the fly likes [newbie] bracketing error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "[newbie] bracketing error" Watch "[newbie] bracketing error" New topic
Author

[newbie] bracketing error

Jon Camilleri
Ranch Hand

Joined: Apr 25, 2008
Posts: 660

can anyone see my bracketing error?




Jon
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18745
    
  40


It is actually pretty easy to spot, but instead of telling you right away, I recommend that you start here....

at homenetwork.bkr.training.ChopLineNumbers.main(ChopLineNumbers.java:54)


Generally, by the time the compiler figures out that the braces are all screwed up, it is past the point of the error.... So... I recommend that you start at line 54, and work backwards, looking for out-of-place braces.

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18745
    
  40

And BTW....



Go back and recompile your program. And use the error message from the compiler. This error message is caused by the IDE, when the IDE is telling you that your program has errors, and would you like to run it anyway.... and you said yes.... NEVER run a program that has compile errors.

Henry
Jon Camilleri
Ranch Hand

Joined: Apr 25, 2008
Posts: 660

Henry Wong wrote:And BTW....



Go back and recompile your program. And use the error message from the compiler. This error message is caused by the IDE, when the IDE is telling you that your program has errors, and would you like to run it anyway.... and you said yes.... NEVER run a program that has compile errors.

Henry


Just read it for the upteenth time...found it I think.
 
 
subject: [newbie] bracketing error