I'm using the results from String targetID = ((Node) targetId.item(0)).getNodeValue()
in some if logic: if (targetID == "OK")
and else if (targetID == "UNKNOWN_USER")
, but both comparisons fail. I print out targetID
and it displays correctly and displays as java.lang.String
, so what am I missing here?
问问题
20 次