longest_Palindrome in java