Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import java.util.ArrayList;
import java.util.List;

public class Main {
    public static List<Integer> diff(List<Integer> l1, List<Integer> l2) {
        List<Integer> aux1 = new ArrayList<Integer>(l1);
        List<Integer> aux2 = new ArrayList<Integer>(l2);
        aux1.removeAll(l2);
        aux2.removeAll(l1);
        aux1.addAll(aux2);
        return aux1;
    }
}