A palindrome is a word, phrase, number or other sequence of units that can be read the same way in either direction.
To check whether a word is a palindrome I get th
Why not just :
boolean isPalindrom(String s) { char[] myChars = s.toCharArray(); for (int i = 0; i < myChars.length/2; i++) { if (myChars[i] != myChars[myChars.length - 1 - i]) { return false; } } return true; }