Wipro interview question

Write a java code for palindrome check.