Here you can find the source of isEmpty(Object[] array)
public static boolean isEmpty(Object[] array)
//package com.java2s; //License from project: Open Source License import java.util.Collection; import java.util.List; import java.util.Map; public class Main { public static boolean isEmpty(Map<?, ?> map) { return ((map == null) || (map.size() == 0)); }/*ww w. j av a 2s. co m*/ public static boolean isEmpty(Collection<?> collection) { return ((collection == null) || (collection.size() == 0)); } public static boolean isEmpty(Object[] array) { return ((array == null) || (array.length == 0)); } public static boolean isEmpty(List<?> array) { return ((array == null) || (array.size() == 0)); } public static boolean isEmpty(long[] array) { return ((array == null) || (array.length == 0)); } public static boolean isEmpty(int[] array) { return ((array == null) || (array.length == 0)); } public static boolean isEmpty(short[] array) { return ((array == null) || (array.length == 0)); } public static boolean isEmpty(byte[] array) { return ((array == null) || (array.length == 0)); } public static boolean isEmpty(double[] array) { return ((array == null) || (array.length == 0)); } public static boolean isEmpty(float[] array) { return ((array == null) || (array.length == 0)); } public static boolean isEmpty(boolean[] array) { return ((array == null) || (array.length == 0)); } public static boolean isEmpty(char[] array) { return ((array == null) || (array.length == 0)); } }