Check string array to for Empty - Android java.lang

Android examples for java.lang:String Null or Empty

Description

Check string array to for Empty

Demo Code

import android.text.TextUtils;

public class Main{

    public static boolean notIsEmpty(String... parmaes) {
        int parmaesLenght = parmaes.length;
        if (parmaesLenght > 0) {
            for (String parma : parmaes) {
                if (TextUtils.isEmpty(parma)) {
                    return false;
                }//from   w  ww .j a  va2s . c  om
            }
            return true;
        }
        return false;
    }

}

Related Tutorials