A simple Java program that checks if a string is a palindrome