Untitled
if(!list.isEmpty(){ processItems(list); } //////////////////////////// if(isNotEmpty(list){ processItems(list); } private boolean isNotEmpty(List list){ return !list.isEmpty(); }
if(!list.isEmpty(){ processItems(list); } //////////////////////////// if(isNotEmpty(list){ processItems(list); } private boolean isNotEmpty(List list){ return !list.isEmpty(); }