Here you can find the source of isNullOrEmpty(String[] s)
public static boolean isNullOrEmpty(String[] s)
//package com.java2s; //License from project: Apache License import java.util.List; public class Main { public static final String EMPTY_STRING = ""; public static boolean isNullOrEmpty(String[] s) { if ((s == null) || (s.length == 0)) return true; for (int i = 0; i < s.length; i++) { if (!isNullOrEmpty(s[i])) { return false; }//from ww w. j av a 2s. co m } return true; } public static boolean isNullOrEmpty(List<String> input) { return (input == null) ? true : isNullOrEmpty(input.toArray(new String[input.size()])); } public static boolean isNullOrEmpty(String s) { return (s == null) || s.equals(EMPTY_STRING); } }