Java tutorial
//package com.java2s; import java.util.*; public class Main { public static <K> List<K> removeDuplicateFromList(List<K> lst) { return new ArrayList<K>(new LinkedHashSet<K>(lst)); } }