Android Array Empty Check ckNonEmpty(String... argvs)

Here you can find the source of ckNonEmpty(String... argvs)

Description

ck Non Empty

Declaration

public static boolean ckNonEmpty(String... argvs) 

Method Source Code

//package com.java2s;

public class Main {
    public static boolean ckNonEmpty(String... argvs) {
        for (String arg : argvs) {
            if (ckIsEmpty(arg)) {
                return true;
            }/*  w  ww.  ja  v  a  2s . co m*/
        }
        return false;
    }

    public static boolean ckIsEmpty(String s) {
        if (s == null || s.trim().equals("") || s.trim().equals("null")) {
            return true;
        }
        return false;
    }
}

Related

  1. isAnyStringEmpty(String[] array)
  2. isEmpty(Object[] array)
  3. isEmpty(T[] array)
  4. isEmpty(V[] sourceArray)