Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
M Littlejohn
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am an idiot...
I apologise for wasting the last minute of your life.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
(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 :)
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!