Create Palindrome1.java

Reverse the input string and check if they are equal.