Here you can find the source of isEmpty(Object[] array)
public static boolean isEmpty(Object[] array)
//package com.java2s; //License from project: Apache License import java.util.List; public class Main { /***********************************************************************/ public static boolean isEmpty(Object[] array) { return getArrayLength(array) == 0; }/*from w w w. ja v a 2 s . c o m*/ /***********************************************************************/ public static boolean isEmpty(List list) { return (list == null || list.size() == 0); } /***********************************************************************/ public static int getArrayLength(Object[] array) { return array == null ? 0 : array.length; } }