結果 : palindrome in java without using string function