Java tutorial
//package com.java2s; //License from project: Open Source License import java.util.Collection; public class Main { public static boolean isEmpty(Collection array) { return array == null || array.isEmpty(); } public static boolean isEmpty(Object[] array) { return array == null || array.length == 0; } }