Question: ************ IN JAVA************* 9. Write a main method, which you call the above methods to : a. Create a linked list L of N integers.

 ************ IN JAVA************* 9. Write a main method, which you call
************ IN JAVA************* the above methods to : a. Create a linked list L of
N integers. b. Divide the linked list L into two linked list

9. Write a main method, which you call the above methods to : a. Create a linked list L of N integers. b. Divide the linked list L into two linked list LD and LU. c. Display the elements of two obtained linked list LD and LU. 9. Write a main method, which you call the above methods to : a. Create a linked list L of N integers. b. Divide the linked list L into two linked list LD and LU. c. Display the elements of two obtained linked list LD and LU. 2. Write a Java method which inserts a positive integer at the end of a linked list. 3. Write a Java method which displays the elements of a linked list. 4. Write a Java method which returns true if a given integer X is in a linked list and false otherwise. 5. Write a Java method which returns the size of a linked list. 6. Write a Java method which calculates and returns the sum of elements in a linked list. 7. Write a Java method which calculates and returns the average of elements in a linked list. 8. Write a Java method which divides a linked list L into two linked lists LD and LU. LD will contain the elements that are less or equal than the average of elements of the linked list L and LU will contain the elements that are greater than the average of elements of the linked list L. The elements must be added in each linked list LD and LU without duplication

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!