Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

arrays?

 
Jeremy Swain
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 9265
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic