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 {
    public static List<String> getDiffentElement(List<String> minList, List<String> maxList) {
        List<String> newList = new ArrayList<String>();
        for (String max : maxList) {
            if (!(minList.contains(max))) {
                newList.add(max);
            }
        }
        return newList;
    }
}