My current code is like this:
if(x != null) { if (x.getValue() != 5) { //do stuff } }
Is there a better way to write this case? T