Which method do you use to test if an element is in a set or list named x?
a. (element instanceof List) || (element instanceof Set)
b. x.in(element)
c. x.contain(element)
d. x.contains(element)
e. x.include(element)
d The contains method defined in the Collection interface checks if an element is in the collection (set or list)
Computer Science & Information Technology
You might also like to view...
All three major platforms dicussed in the book have a marketplace for developers to sell their apps.
Answer the following statement true (T) or false (F)
Computer Science & Information Technology
____________________ is the de facto standard for e-mail transmission.
Fill in the blank(s) with the appropriate word(s).
Computer Science & Information Technology