Question: Write a program to create a linked list using LinkedList class. The linked list should contain the names of 5 students. The names should be

Write a program to create a linked list using LinkedList class. The linked list should contain the names of 5 students. The names should be entered using scanner. Use the function add and print the linkedlist Change the name of the student in the 3rd position to Zainab and print the linked list < Remove the element at the any position by the entering the value from keyboard. If the user enters 3, the value at 3rd position should be removed. Print the linked list Print the first element of the linked list. Access and remove the first element of LinkedList. Print the removed element and the linked list. Add an element Yousaf at the front of the linked list. Print the linked list >

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!