This code always returns false. What might be the problem ?
public class S18_Palindrome {
public static void main(String[] args) {
String myString = new String("malayalam");
if (myString.equals(new StringBuilder(myString).reverse())) {
System.out.println("true");
} else {
System.out.println("false");
}
}
}