Bookmark Topic Watch Topic
  • New Topic

arrays?

 
Jeremy Swain
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • 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:
 
Jeremy Swain
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Report post to moderator
sorry, i accidently added this twice. please disregard this post.
 
Stuart Ash
Ranch Hand
Posts: 637
  • Mark post as helpful
  • send pies
  • Report post to moderator
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.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!