結果 : write a program to reverse a string and check for palindrome in java