Here you can find the source of isEmpty(T[] arr)
public static <T> boolean isEmpty(T[] arr)
//package com.java2s; //License from project: Apache License import java.util.Collection; import java.util.Map; public class Main { /**// ww w .ja v a2s .c o m * return collection is empty */ public static <E> boolean isEmpty(Collection<E> c) { return (null == c || c.isEmpty()); } /** * return map is empty */ public static <K, V> boolean isEmpty(Map<K, V> map) { return (null == map || map.isEmpty()); } /** * return array is empty */ public static <T> boolean isEmpty(T[] arr) { return null == arr || arr.length == 0; } }