public class IntegerDuplicateDeleter extends DuplicateDeleter{ public IntegerDuplicateDeleter(Integer[] array){ super(array); } public Integer[] removeDuplicates(int maxNumberOfDuplications){ Integer[] newArr = new Integer[0]; int occur = 0; for(Integer i : array){ occur=0; for(Integer j : array){ if(i==j){ occur++; } } if(occur < maxNumberOfDuplications){ Integer[] temp = new Integer[newArr.length+1]; for(int k = 0; k