Tag: how to reverse a string and check palindrome in java