Nothing much, really, but I recently noticed that when you need to compare two Strings in Java, when one of them is constant, instead of
stringVariable != null && stringVariable.equals("someConstantString")you can simply do
"someConstantString".equals(stringVariable)
, which does all the magic at once.