Here you can find the source of isEmpty(E[] array)
private static <E> boolean isEmpty(E[] array)
//package com.java2s; //License from project: Open Source License import java.util.*; public class Main { private static <E> boolean isEmpty(Collection<E> collection) { return (collection == null || collection.isEmpty()); }//from www. j a v a2 s.c o m private static <E> boolean isEmpty(E[] array) { return (array == null || array.length == 0); } }