Here you can find the source of isEmpty(T[] array)
public static <T> boolean isEmpty(T[] array)
//package com.java2s; //License from project: Apache License import java.util.Collection; public class Main { public static <T> boolean isEmpty(Collection<T> collection) { return collection == null || collection.isEmpty(); }//from ww w .ja v a 2s. co m public static <T> boolean isEmpty(T[] array) { return array == null || array.length == 0; } public static boolean isEmpty(byte[] 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; } public static boolean isEmpty(int[] array) { return array == null || array.length == 0; } public static boolean isEmpty(long[] array) { return array == null || array.length == 0; } public static boolean isEmpty(float[] array) { return array == null || array.length == 0; } public static boolean isEmpty(double[] array) { return array == null || array.length == 0; } }