For each of the following, write the Java statements that perform the requested operation on the list shown in Figure. Also draw a picture of the status of the list after each operation is complete. When you delete a node from the list, make sure it will eventually he returned to the system. All insertions into the list should maintain the list’s sorted order. Do not use any of the methods that were presented in this chapter.
a. Assume that prev references the first node and curr references the second node. Insert L into the list.
b. Assume thatprev references the second node and that curr references the third node of the list after you revised it in Parta. Delete the last node of the list.
c. Assume thatprev references the last node of the list after you revised it in Partb, and assume that curr isnull. Insert Q into the list.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.