Name: Anonymous 2018-04-11 18:00
You know that guy, who was assigned to review your code and orders you to change every "X == 0" into "0 == X". Fuck him! Just fuck! Hope his girlfriend will drop him for a smarter and more creative guy.
//check if x is 0
protected String zeroString = "";
zeroString += "0";
if (x.equals(Integer.parseInt(zeroString)){
return true;
} else {
System.out.println("x does not equal 0");
return false;
}
//another one
switch(x) {
case 0:
return true;
break;
default:
return false;
break;
}