Here you can find the source of isEmpty(String[] array)
public static final boolean isEmpty(String[] array)
//package com.java2s; //License from project: Open Source License import java.util.Collection; public class Main { public static final boolean isEmpty(String[] array) { return array == null || array.length == 0; }/*from w w w . j a v a 2s.c o m*/ public static final boolean isEmpty(Collection<String> coll) { return coll == null || coll.isEmpty(); } public static final boolean isEmpty(String foo) { return (foo == null || foo.trim().length() == 0); } public static String trim(String str) { return str == null ? null : str.trim(); } }