This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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 Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply locked 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:
Jeremy Swain
Greenhorn

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: http://aspose.com/file-tools
 
subject: arrays?
 
It's not a secret anymore!