Professional Documents
Culture Documents
Labsheet 7
Labsheet 7
Labsheet 7
Question 2
For the above example, now implement a double-ended SLL which will keep track of both
head and tail in the list and modify the methods which need to be modified, accordingly.
Question 3
Write program that creates a linked list to represent details of students at UoM. The
following details must be kept for each student:
• SID
• First name
• Last name
• Address
• Age
• Gender
• Course enrolled for
Your program must also display a menu to perform the following tasks:
• Create a linked list.
Note: The method to create a linked list makes use of the method insertFirst() or insertLast()
or insertOrdered()
• Insert new nodes to the linked list.
• Search for details pertaining to a particular student.
• Delete details of a particular student.
• Find number of nodes in the linked list.
• Display information pertaining to all students.