結果 : string palindrome program in java using reverse method