This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
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: 9191

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!