Question: *JAVA************ Write a code to implement a linked list which contains generic objects. write a method which inserts an object at the end of the
*JAVA************
Write a code to implement a linked list which contains generic objects.
write a method which inserts an object at the end of the linked list.
insert 10 objects into the linked list of alternating types (strings (your choice) and randomly generated ints (0-99)
write a method to recursively traverse the linked list, and which returns the size.
use this method to print the linked list, and return its size
delete the head (first node) of the linked list.
print the linked list and its size
delete the last node from the linked list
print the linked list and its size
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
