結果 : palindrome program in java without using reverse function