data strcture using JAVA   i need the codes for all the following functions   Requested work : 1. Define a function newList to create a new empty linked list. 2. Define a function sizeList to return the size of a given linked list 3. Define a function displayList to display the content of all nodes of a given linked list. 4. Define a function addNodeHead to add a new node on the head of a given linked list. 5. Define a function addNodeQueue to add a node on the queue of a given linked list. 6. Define a function delNodeHead to delete a node from the head of a given linked list. 7. Define a function delNodeQueue to add a node from the queue of a given linked list. 8. Define a function insertNodePos to add a new node on the given position of a given linked list. 9. Define a function delNodePos delete a node from a given position of a given linked list. 10. Test all previously defined functions in the main method.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter17: Linked Lists
Section: Chapter Questions
Problem 18SA
icon
Related questions
Question

data strcture using JAVA

 

i need the codes for all the following functions

 

Requested work : 1. Define a function newList to create a new empty linked list.

2. Define a function sizeList to return the size of a given linked list

3. Define a function displayList to display the content of all nodes of a given linked list.

4. Define a function addNodeHead to add a new node on the head of a given linked list.

5. Define a function addNodeQueue to add a node on the queue of a given linked list.

6. Define a function delNodeHead to delete a node from the head of a given linked list.

7. Define a function delNodeQueue to add a node from the queue of a given linked list.

8. Define a function insertNodePos to add a new node on the given position of a given linked list.

9. Define a function delNodePos delete a node from a given position of a given linked list.

10. Test all previously defined functions in the main method.

 

Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Linked List Representation
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr