wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets 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

Palindrome.java:14: illegal start of expression
private void getDecision()
Palindrome.java:48: ';' expected

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

Joined: Oct 29, 2001
Posts: 8836

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.

"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
It is sorta covered in the JavaRanch Style Guide.
subject: arrays?
Similar Threads
palindrome not very proficient...
Palindrome example
finding half palindrome words