Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- else if (Character.isLetterOrDigit(charRight) = false)
- right--;
- else if (Character.isLetterOrDigit(charLeft) = false)
- left++;
- else
- break;
- System.out.println();
- if (left > right)
- System.out.println("That phrase or word is not a palidrome.");
- else
- System.out.println("That is a palidrome!");
Add Comment
Please, Sign In to add comment