Thought I'd share 2 examples of code I've come across while QA'ing an Enterprise clients J2EE apps.

Code:
if("value" == null){}
My favorite (!)how to check an arrays size
Code:
String[] values;
....
int valueSize = 0;
while(valueSize < values.length)
{
    ++valueSize;
}