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 IDEs, Version Control and other tools and the fly likes Eclipse Error: 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 » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse Error: "Syntax error on tokens, Expression expected instead"" Watch "Eclipse Error: "Syntax error on tokens, Expression expected instead"" New topic
Author

Eclipse Error: "Syntax error on tokens, Expression expected instead"

M Littlejohn
Greenhorn

Joined: Aug 13, 2010
Posts: 4

Error @ Line 07; "new Vector<String>"

Can someone explain to me what this error is and why I'm getting it please? I know it'll be some rookie mistake.
I changed this code from constructing the new Vector at compile-time to constructing the Vector during run-time.

Is this a bad idea, are there better ways of doing this?

Cheers,

M
M Littlejohn
Greenhorn

Joined: Aug 13, 2010
Posts: 4
I am an idiot...
I apologise for wasting the last minute of your life.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

(While to some of us it's obvious you're missing some parentheses, for the sake of those that might have a similar problem, it's good to also follow up with what the problem was. But glad you got it worked out :)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Eclipse Error: "Syntax error on tokens, Expression expected instead"
 
Similar Threads
Problem with DB2
null pointer exception
Validate if vector is null
IAE or NPE?
How to handle ExceptionInInitializerError ?