jeudi 23 février 2017

How to simplify this (if statement) Java code?

Action temp = checkStation(view, i, j);
if(temp != null){
    return temp;
}

I have these code, and I am wondering is there a way to write it in just one line or a more simplified way... Could anyone help? I am using Java.

Aucun commentaire:

Enregistrer un commentaire