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 IDEs, Version Control and other tools and the fly likes Syntax error on token(s), misplaced construct(s) 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 » Engineering » IDEs, Version Control and other tools
Bookmark "Syntax error on token(s), misplaced construct(s)" Watch "Syntax error on token(s), misplaced construct(s)" New topic
Author

Syntax error on token(s), misplaced construct(s)

Ali KiaKazemi
Greenhorn

Joined: May 18, 2012
Posts: 1
hi , can anyone find what s problem with this code ?
it says Syntax error on token(s), misplaced construct(s)


Sumit Patil
Ranch Hand

Joined: May 25, 2009
Posts: 296

Please QuoteYourSources

Also, ShowSomeEffort and use code tags (UseCodeTags)


Thanks & Regards, Sumeet
SCJP 1.4, SCWCD 5, LinkedIn Profile
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5823
    
    7

Wow, you really confused the compiler by using commas instead if semicolons in your for statement (line 17).


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Syntax error on token(s), misplaced construct(s)