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 arrays? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "arrays?" Watch "arrays?" New topic


Jeremy Swain

Joined: Nov 21, 2005
Posts: 3
hello all. i am working on a program that decides if a word or a sentence is a palindrome. this is my first time using JOption. here is my code:

im getting the following errors illegal start of expression
private void getDecision()
and ';' expected

can someone tell me what i am doing wrong?
Joe Ess

Joined: Oct 29, 2001
Posts: 9167

You have problems with your open and close brackets. For example, you don't end your main() method before you start do declare your getDecision() method. That's the meaning of the "illegal start of expression" error.

[How To Ask Questions On JavaRanch]
I agree. Here's the link:
subject: arrays?
It's not a secret anymore!