Here you can find the source of isEmpty(Object[] array)
public static final boolean isEmpty(Object[] array)
//package com.java2s; //License from project: Apache License import java.util.Collection; import java.util.Map; public class Main { public static final boolean isEmpty(Collection<?> collection) { if (collection == null) { return true; }//from ww w . ja va 2s. c om return collection.isEmpty(); } public static final boolean isEmpty(Map<?, ?> map) { if (map == null) { return true; } return map.isEmpty(); } public static final boolean isEmpty(Object[] array) { if (array == null) { return true; } return array.length == 0; } public static boolean isEmpty(String s) { if (s == null) { return true; } return s.length() == 0; } }