Some other rules Here some other rules 1. Use Short IF Bad: public boolean isEmulator(){ if(someThing){ return true; }else{ return false; } } Good: public boolean isEmulator(){ return someThing ? true : false; }