package holding;import static Test_purview.print.*;
import java.util.*;public class Test_Exercise2 {
public static void main(String[] args){
// 为什么Set不能创建
Collection<Integer> c = new HashSet<Integer>(); 
// Collection<Integer> c = new Set<Integer>(); ----Illegal
for(int i = 0;i<10;i++){
c.add(i);
print(i);
}
for(int i = 0;i<10;i++){
c.addAll(c);
print(c);
}
for(Integer i : c)
print(i);
}
}如题:能创建HashSet不能创建Set?