This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread 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 Murach's Java Servlets and JSP this week in the Servlets 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: 3420
    
  12
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: 37953
    
  22
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: One error in code..not understanding what it tells me. Code works it is on line 55.
 
Similar Threads
last week of class last assignment. Any help is appreciated.
Help with Java Mortgage Program
Help with errors again
more help with java problem
Java Rookie Help Requested