Here you can find the source of hasOneEmpty(String[] args)
public static boolean hasOneEmpty(String[] args)
//package com.java2s; import java.util.Collection; import java.util.Map; public class Main { public static boolean hasOneEmpty(String[] args) { if (args == null) return false; for (int i = 0; i < args.length; i++) { if (isEmpty(args[i])) return true; }/*from ww w . j a v a 2 s. c o m*/ return false; } public static boolean isEmpty(String str) { return str == null || str.length() < 1; } public static boolean isEmpty(Object[] arrs) { return arrs == null || arrs.length < 1; } public static boolean isEmpty(Collection colls) { return colls == null || colls.isEmpty(); } public static boolean isEmpty(Map map) { return map == null || map.isEmpty(); } }