aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply locked 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:
Jeremy Swain

Joined: Nov 21, 2005
Posts: 3
sorry, i accidently added this twice. please disregard this post.
Stuart Ash
Ranch Hand

Joined: Oct 07, 2005
Posts: 637
Why are you mixing algorithm and presentation??

Code two classes:

PalindromeFinder and PalindromeUI.

Implement the logic in the finder, the UI gets the input from the user.

ASCII silly question, Get a silly ANSI.
I agree. Here's the link:
subject: arrays?
Similar Threads
palindrome not very proficient...
Palindrome example
how to check whether a word is a palindrome