結果 : string palindrome in java using reverse method example