Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

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

public class Main {
    /**
     * Remove all entries from collection a that are in collection b and returns a new collection.
     */
    public static <T> Set<T> removeAll(Collection<T> a, Collection<T> b) {
        Set<T> c = new HashSet<T>(a);
        c.removeAll(b);
        return c;
    }
}