Java String Array Check hasNulls(String... strings)

Here you can find the source of hasNulls(String... strings)

Description

has Nulls

License

Apache License

Declaration

public static Boolean hasNulls(String... strings) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static Boolean hasNulls(String... strings) {
        for (String s : strings) {
            if (isEmpty(s)) {
                return true;
            }/*  w  w  w  . j  a va 2s  . c  o m*/
        }
        return false;
    }

    public static Boolean isEmpty(String str) {
        return (str == null || str.isEmpty());
    }
}