Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import java.util.*;

import java.util.function.Predicate;

public class Main {
    static <E> boolean noneMatch(List<E> elements, Predicate<E> predicate) {
        //TODO Implement me
        for (E element : elements) {
            if (predicate.test(element)) {
                return false;
            }
        }
        return true;
    }
}