Java Array Value Any anyEmpty(String[] array)

Here you can find the source of anyEmpty(String[] array)

Description

any Empty

License

Open Source License

Declaration

private static boolean anyEmpty(String[] array) 

Method Source Code

//package com.java2s;
/*//from   w  w w .j  a v  a 2  s .  c o  m
 *   Copyright 2015 Follett School Solutions 
 *
 *   This file is part of PerfMon4j(tm).
 *
 *    Perfmon4j is free software: you can redistribute it and/or modify
 *    it under the terms of the GNU Lesser General Public License, version 3,
 *    as published by the Free Software Foundation.  This program is distributed
 *    WITHOUT ANY WARRANTY OF ANY KIND, WITHOUT AN IMPLIED WARRANTY OF MERCHANTIBILITY,
 *    OR FITNESS FOR A PARTICULAR PURPOSE.  You should have received a copy of the GNU Lesser General Public 
 *    License, Version 3, along with this program.  If not, you can obtain the LGPL v.s at 
 *    http://www.gnu.org/licenses/
 *    
 *    perfmon4j@fsc.follett.com
 *    David Deuchert
 *    Follett School Solutions
 *    1391 Corporate Drive
 *    McHenry, IL 60050
 * 
 */

public class Main {
    private static boolean anyEmpty(String[] array) {
        boolean foundEmpty = false;

        for (String s : array) {
            if ("".equals(s)) {
                foundEmpty = true;
                break;
            }
        }

        return foundEmpty;
    }
}

Related

  1. any(boolean[] values)
  2. any(final String a, final String b)
  3. anyAreEmpty(String... words)
  4. anyBlank(String... ss)
  5. anyEmpty(final String head, final String... tail)
  6. anyEmptyField(String[] items)
  7. anyEqual(int item, int... expected)
  8. anyInherit(Class cl, Class[] otherClasses)
  9. anyInstance(Throwable t, Class[] types)