mardi 19 avril 2016

Checking several arrat for null in an if statement

Is there a better (nicer) way to write this if statement?

Array a =null, b= null, c= null, d= null;
if(a!=null && b!=null && c!=null && d!=null)
{ //// TODO }

Aucun commentaire:

Enregistrer un commentaire