Here you can find the source of isNullOrEmptyOrFirstElementBlank(String[] values)
public static boolean isNullOrEmptyOrFirstElementBlank(String[] values)
//package com.java2s; //License from project: Open Source License import java.util.Arrays; import java.util.Collection; import java.util.List; public class Main { public static boolean isNullOrEmptyOrFirstElementBlank(String[] values) { return isArrayNullOrEmpty(values) || values[0].equals(""); }// w ww . ja va2 s .c o m public static boolean isArrayNullOrEmpty(String[] values) { return values == null || values.length == 0; } /** * Compare a collection of strings to an array of strings. */ public static boolean equals(Collection<String> asCollection, String[] values) { final List<String> asList = Arrays.asList(values); final boolean containsAll = asCollection.containsAll(asList); final int size = asCollection.size(); final int length = values.length; return containsAll && length == size; } }