Java tutorial
//package com.java2s; import java.util.Collection; public class Main { /** * @author DUYPT * @param data * @return */ public static boolean isNullOrEmpty(Collection<Object> data) { if (data != null && !data.isEmpty()) { return true; } return false; } }