Wipro Interview Question

Write a java code for palindrome check.