結果 : write a java program to check if a string is palindrome