Hacker News new | ask | show | jobs
by croo 1585 days ago
Nitpick! You should always use the constant for the first part of an equality check so you won't get NPE if myobj is null: "string".equals(myobj);