File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Why this is giving error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Why this is giving error" Watch "Why this is giving error" New topic

Why this is giving error

Anchit Jindal

Joined: Feb 03, 2010
Posts: 21
The code at
is giving the following error: <identifier> expected

1 error

Please explain the reason

Thanks a lot...
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 46362
The line in question is outside a method.
David Newton

Joined: Sep 29, 2008
Posts: 12617

Please just paste your code into your messages; the syntax highlighting is good enough and saves us a step. Thanks! :)
I agree. Here's the link:
subject: Why this is giving error
jQuery in Action, 3rd edition