t is time for you to demonstrate your skills in a project of your own choice. You must DESIGN, ANALYSE AND CODE any method for the GENERIC MyLinkedList class that will manipulate the linked list. You can decide yourself what it should be following the specification below: 1. Purpose: The method must make logical sense – it should be of some purpose to somebody. You should describe in the text who will use the method for which purpose. 2. Clearly explain the problem. Then clearly explain how your method will solve it. 3. Test program: Test the method using a wrapped class like Integer however, you will get extra marks if you can test it with the new classes you created in I_Do1 and I_Do2.
It is time for you to demonstrate your skills in a project of your own choice. You must DESIGN,
ANALYSE AND CODE any method for the GENERIC MyLinkedList class that will manipulate the linked
list. You can decide yourself what it should be following the specification below:
1. Purpose: The method must make logical sense – it should be of some purpose to somebody.
You should describe in the text who will use the method for which purpose.
2. Clearly explain the problem. Then clearly explain how your method will solve it.
3. Test program: Test the method using a wrapped class like Integer however, you will get extra
marks if you can test it with the new classes you created in I_Do1 and I_Do2.
Purpose :
To store different types of values generic linked list serves as a purpose.
Any programmer who wants to store values of different types, he/she can use generic linked lists.
Explanation :
First, node is declared.
Later in class, initially head and last of linked list will be null.
add, get methods will be used for adding the inputs and getting the inputs from the user.
In main, inputs are given.
As a result those will be printed.
Step by step
Solved in 3 steps with 1 images