I am doing a simple comparison that isn't giving the result I think it should:
<code>
String type = chartBean.getChartType(); //return "LINE"
if (type.equals("LINE")) {
// rest of code here
}
</code>
If I print out type, it does in fact print LINE, however, type.equals("LINE") returns false.
What am I missing here?
Thanks...