I have the following code snippet
format(Object obj) {
if(obj.equals("false")) {
buffer.append("No");
} else {
buffer.append("Yes");
}
}
When debugging, I verify that the value of obj variable is a Boolean object with the value "false", but the if clause always go to the Yes instruction. Can you help me understand why?