Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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 Make it so: Java DB Connections & Transactions this week in the JDBC 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?
jQuery in Action, 3rd edition