Allocate a TreeSet and LinkedList both with size
numbers [0, size).
For
• Calculate a random number in the range [0, size) and time how long the .contains () method
takes to find if the element exists in the structure.
Report the average time for each of the structures to find if the element exists (totalTimes/experiments).
Produce a short report (450-500 words) with graphs and/or tables describing the erved behavior
when using TreeSet versus a LinkedList.
Fig: 1