Added Palindrome program written in Java.