Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- System.out.println("Enter the sentence you would like to check for palindromes");
- Scanner user_input = new Scanner( System.in );
- String word = user_input.nextLine( );
- String[] segString = word.split("\\s+");
- if (word.length() > 2) {
- //Testable for palindrome
- } else {
- //ignore too small of word
- ;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement