Java List Contain containsWhitespace(List elements)

Here you can find the source of containsWhitespace(List elements)

Description

contains Whitespace

License

Mozilla Public License

Declaration

public static boolean containsWhitespace(List<String> elements) 

Method Source Code

//package com.java2s;
//License from project: Mozilla Public License 

import java.util.Iterator;
import java.util.List;

public class Main {
    public static boolean containsWhitespace(List<String> elements) {

        Iterator itr = elements.iterator();

        while (itr.hasNext()) {
            String element = (String) itr.next();
            if (element.trim().equals("")) {
                return true;
            }/*  w  w  w .ja va  2 s. c  om*/
        }
        return false;
    }
}

Related

  1. containsStringStartingWith(List list, String prefix)
  2. containsSubsequence(List a, List b)
  3. containsType(List list, Class type)
  4. containsUnorderedSequence(List a, List b)
  5. containsUsingToArray(List list, Integer value)
  6. firstFunnyString(List words, String containedTest)
  7. getListValue(Object container, int index)
  8. identityContains(Object o, List list)
  9. indexOfLineContaining(List lines, String s)