import java.util.Set;
public class Test { public static void main(String[] args) { Set
Set
a.add(1);
a.add(2);
b.add(2);
b.add(3);
Set
Set
b1.addAll(b);
System.out.println("a1 as the clone of a:"+a System.out.println("b1 as the clone of b:"+b1);
a1.removeAll(b);
l(a);
System.out.println("In a but not in b:"+a1);
System.out.println("In b but not in a:"+b1);
} } Console output: a1 as the clone of a:[1, 2] b1 as the clone of b:[2, 3] In a but not in b:[1] In b b None 内容来自网友回答
给出四个结论:是由个元素组成的集合集合表示仅由一个"组成的集合与是两个不同的集合...
给出四个结论: 是由个元素组成的集合 集合表示仅由一个"组成的集合 与是两个不同的集合 集合大于的无理数是一个有限集 其中正确的是( ) A、只有 B、只有 C、只有 D、只有