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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "arrays?" Watch "arrays?" New topic
Author

arrays?

Jeremy Swain
Greenhorn

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()
and
Palindrome.java:48: ';' expected

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

Joined: Oct 29, 2001
Posts: 8935
    
    9

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]
 
Consider Paul's rocket mass heater.
 
subject: arrays?