jQuery in Action, 3rd edition
The moose likes XML and Related Technologies and the fly likes Syntax Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Syntax Error" Watch "Syntax Error" New topic

Syntax Error

Rick Portugal
Ranch Hand

Joined: Dec 17, 2002
Posts: 243

Line 5 produces a 'Syntax error on token "(","identifier" expected'
What is the problem?

Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24195

Line 5 is a statement, and statements have to be in code blocks. The most common form of code block is a method. You probably mean to do something like

Here I've put all your code into the method "main".

[Jess in Action][AskingGoodQuestions]
I agree. Here's the link: http://aspose.com/file-tools
subject: Syntax Error
It's not a secret anymore!