Here you can find the source of isNullOrEmpty(T[] array)
public static <T> boolean isNullOrEmpty(T[] array)
//package com.java2s; //License from project: Apache License import java.util.Collection; import java.util.Map; public class Main { public static boolean isNullOrEmpty(Collection<?> collection) { return collection == null || collection.isEmpty(); }/*from www . ja v a2 s. c om*/ public static boolean isNullOrEmpty(Map<?, ?> map) { return map == null || map.isEmpty(); } public static <T> boolean isNullOrEmpty(T[] array) { return array == null || array.length == 0; } }