File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Error- wot am i doing wrong? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Error- wot am i doing wrong?" Watch "Error- wot am i doing wrong?" New topic

Error- wot am i doing wrong?

Naf Rash
Ranch Hand

Joined: Feb 19, 2004
Posts: 85
I have the follwoing error in my code and I can't understand why. The piece of code to which it refers is
private Vector euclidean(ResultSetMetaData rsmd){
The error is:
ErrorSyntax error on token "(", ";" expected
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
I'd guess that above this line of code, you're missing a semicolon.
If you're not able to resolve the issue, then you could always post a more complete code example, and I'm sure other JavaRanchers will be able to assist you.

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Sadanand Murthy
Ranch Hand

Joined: Nov 26, 2003
Posts: 382
A small piece of advice, Naf. Whenever you get a syntax error on a line of code, don't assume that that line of code has a problem. The line before it may have the error.

Ever Existing, Ever Conscious, Ever-new Bliss
I agree. Here's the link:
subject: Error- wot am i doing wrong?
jQuery in Action, 3rd edition