Solved

Assume That You Have Declared a Set Named MySet to Hold

Question 36

Multiple Choice

Assume that you have declared a set named mySet to hold String elements.Which of the following statements will correctly delete an element from mySet?


A) mySet.delete("apple") ;
B) mySet.remove("apple") ;
C) mySet.get("apple") ;
D) mySet.pop("apple") ;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions