vendredi 26 août 2016

Why it is important to compare arraylist with not null operator and .isEmpty() method in if-else statement?

List<Student> detailList = Arraylist<Student>(); 
if (detailList != null && !detailList.isEmpty()){}

Aucun commentaire:

Enregistrer un commentaire