my dog learned polymorphism*
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
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: 659

can anyone see my bracketing error?




Jon
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18117
    
  39


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: 18117
    
  39

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: 659

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: [newbie] bracketing error
 
Similar Threads
[newbie] regex anomaly
[newbie] String.replace()/replaceAll() removed spaces
java.lang.NoClassDefFoundError:
Writing to a file
Hey guys, A little help with binary trees