0% found this document useful (0 votes)
14 views

Lab 05 - Collection Interface

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views

Lab 05 - Collection Interface

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Data Structures and Algorithms

Lab 05 – Collection Interface


Exercises/Tasks:

1. List all interface/class that implement the Collection interface. Briefly describe each
2. Run the following code sample.

3. Re-write the above code sample for the integer-typed linked list.
4. List all the methods of the LinkedList class, Briefly describe each.
5. Convert LinkedList (created in task 2) to an array using the toArray() method.
6. Run the following code sample

7. List all the methods of the ArrayList class, Briefly describe each.
8. Run the following code sample

9. List all the methods of the Stack class, Briefly describe each.

You might also like