Just add elements from array to Set with the below snippet
public class RemoveDuplicateElements {
public static void main(String args[]){
int array[] = {0,1,2,3,4,5,6,7,8,9,1,2,3,4,5};
Set abc = new HashSet ();
for (Integer t:array){
abc.add(t);
}
System.out.println("sampleSet"+abc);
}
}