結果 : palindrome using method in java