Java tutorial
//package com.java2s; //License from project: Apache License import java.util.*; public class Main { public static <T> List<T> newElements(List<T> old_list, List<T> new_list) { if (new_list == null) return new ArrayList<T>(); List<T> retval = new ArrayList<T>(new_list); if (old_list != null) retval.removeAll(old_list); return retval; } }