Question: Basic Data Structures Java Create LinkedList class global variables include: private LinkedList head; private int size: Implement methods that: 1) Gets from given index (@param

 Basic Data Structures Java Create LinkedList class global variables include: private

Basic Data Structures Java Create LinkedList class global variables include: private LinkedList head; private int size: Implement methods that: 1) Gets from given index (@param int index) 2) Removes duplicates of given data from list (@param T data) 3) Clears the lists 4) Adds given data to front (@param T data) 5) Adds to back (@param T data) 6) Removes from index (@param int index) 7) Removes from front 8) Removes from back 9) Checks if list is empty Methods must throw appropriate exceptions whenever necessary. Create or Assume separate Node Class has appropriate constructors and global variables: private T data: private Node next

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!