File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Syntax Error" Watch "Syntax Error" New topic
Author

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?


IBM 286, SCJP, SCWCD, EIEIO
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

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]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Syntax Error
 
Similar Threads
SAXException within Servlet
need help urgently
package problem
Based on the message, what kind of failure is this?
New to Java. Can you help with whit this (XML) ?