結果 : how to check palindrome string in java without using reverse method