Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

by java 1. Create a single linked list for students (id, name). and the following methods: a. First. b. Last. c. AddLast. d. RemoveLast. e.

by java

1. Create a single linked list for students (id, name).

and the following methods:

a. First.

b. Last.

c. AddLast.

d. RemoveLast.

e. DeleteNode which takes one parameter (int key). This will delete the node with id=key.

f. Find: which takes one parameter (int key). If the key wasnt found display return false If the key was found return True.

g. DisplayList.

2. Fill the list with the following students using AddLast. 101 Mia 102 Alice 103 Ellie 104 Ruby

3. Display the list using DisplayList.

4. Remove student with id =103 using DeleteNode.

5. Display the list using DisplayList. 6. Display the first Student using First.

7. Display the last Student using Last.

8. Delete last student using RemoveLast.

9. Check if there is a student with ID 109? Using Find.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Filing And Computer Database Projects

Authors: Jeffrey Stewart

2nd Edition

007822781X, 9780078227813

More Books

Students also viewed these Databases questions