getting dublicate terms in list in java : what's wrong in code? am not getting any values in output. but it should print duplicate values. (a is a Arraylist)

     HashSet<Integer> hs=new HashSet();
     hs.addAll(a);
     List<Integer> b=new ArrayList();
     a.removeAll(hs);
     System.out.println(a);