09: Math Sets, Java Sets
Submit this homework using Gradescope. You can type up your answers, or write legibly and scan them. Do not attempt to submit a paper copy in class, as it will not be accepted.
Suppose we have sets of integers S and T, and we have corresponding Java objects of type Set<Integer>
named s
and t
. Are each of the following equivalent? Explain your answer in a single sentence. (1 point each)
A. 1 ∈ S and s.contains(1)
B. S ⊆ T and t.containsAll(s)
C. S ∪ T and s.addAll(t)
D. S \ T and s.removeAll(t)