title | type | duration | creator | ||||
---|---|---|---|---|---|---|---|
Lists - School |
lab |
1:30 |
|
Note: This lab should be completed in pairs.
In this lab, you will be creating a simple LinkedList. After the basics of the List are finished, you will create a "School" filled with students. Use your LinkedList and java.util.ArrayList to complete the tasks in the commented sample code.
- Complete the MyLinkedList.java file (excluding the Iterator)
- Complete the Driver.java file
- Correctly determine when to use a LinkedList or an ArrayList
Bonus:
- Complete the Iterator
In the starter-code
folder, you will find a Node class and the beginnings of a LinkedList. You will also find a Driver class that contains instructions for how to interact with the Students in the school.
Reference the solution code for MyLinkedList.java if you get stuck.
A simple Java program that completes the instructions in Driver.java