public static void main(String[] args) {
		// TODO Auto-generated method stub

		LinkedList<Integer> a = new LinkedList<Integer>();
		Q0201a x = new Q0201a();
		x.setup(10);
		a.addAll(Arrays.asList(randoms));
		HashMap<Integer,Integer> hm = new HashMap<Integer,Integer>();
		
		for (int i = 0; i < a.size(); i++) {
			Integer k = a.get(i);
			Integer v = hm.get(k);
			if (v != null) {
				hm.put(k, v+1);
			} else {
				hm.put(k, 0);
			}
//			System.out.println(k);
		}
		
		for (int i = a.size() -1; i >= 0; i--) {
			Integer k = a.get(i);
			Integer v = hm.get(k);
			if (v != 0) {
				a.remove(i);
				hm.put(k, v-1);
			}
		}
		
		Object[] b = a.toArray();
		System.out.println("Duplicates removed: " + Arrays.toString(b));
		
		
		
	}