HashSet, TreeSet, ArrayList, and LinkedList
Each of the following statements applies to one or more of the four classes:
• HashSet
• TreeSet
• LinkedList
• ArrayList
Determine the class(es) to which each statement applies.
a. Does not allow duplicate entries.
b. Does not allow ordering.
c. Allows indexed access.
d. Allows constant time insertions and deletions, that is, the time required for the insertion and deletion of an element is independent of the number of elements in the collection.
e. Allows an arbitrary number of elements.
f. Allows constant time access to elements, that is, the time required to access an element is independent of the number of elements in the collection.
g. Sorting is easily accomplished.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.