結果 : java code to check if string is palindrome