Code example for Collection

Methods: size, toArray

0
            } 
        } 
    } 
 
    public final static String[] toArray(Collection<String> collection) {
        return collection.toArray(new String[collection.size()]);
    } 
 
    public final static boolean isAnyStringEmpty(String[] array) {
        if (array == null || array.length <= 0)
            return false; 
 
        for (String elem : array) {
            if (TextUtils.isEmpty(elem))
                return true; 
        } 
 
        return false; 
    } 
 
    public final static boolean isAnyStringEmpty(Collection<String> collection) {