Update palindrome.java