[Solved] Java program to find a pallindrome [closed]

boolean isPalindrome(String input) { for (int i=0; i < input.length() / 2; ++i) { if (input.charAt(i) != input.charAt(input.length() – i – 1)) { return false; } } return true; } This solution is self explanatory, the only edge case requiring explanation is what happens for words with an odd number of letters. For an input … Read more