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 One error in code..not understanding what it tells me. Code works it is on line 55. 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 "One error in code..not understanding what it tells me. Code works it is on line 55." Watch "One error in code..not understanding what it tells me. Code works it is on line 55." New topic
Author

One error in code..not understanding what it tells me. Code works it is on line 55.

LeeAnne Murphy
Greenhorn

Joined: Aug 15, 2011
Posts: 18



Wk4calcjp2 newloan = new Wk4calcjp2()); (error says ';' expected) what does that mean?

[Edit: fixed code tags]
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3487
    
  13
It means it's expecting a ; after the closing bracket of the method call, but the first character it finds is actually a second closing bracket.


Joanne
LeeAnne Murphy
Greenhorn

Joined: Aug 15, 2011
Posts: 18

Ah got it...I removed the 2nd bracket.. and it cleared the error. Thank you.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38467
    
  23
It takes a long time to get used to the compiler error messages. Google for mindprod java compiler error and you should find some helpful information.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: One error in code..not understanding what it tells me. Code works it is on line 55.