Question: use TDD to implement a linked list data structure class. You will write a java program lListTester.java and a class lList. The class should be

use TDD to implement a linked list data structure class. You will write a java program lListTester.java and a class lList. The class should be developed by TDD methods. use TDD to implement a linked list data structure class. You will

ximplementation class IList +info string +nextList List tis Empty bo +insert +next List(): IList +ISize nt +delete Info +traverse() string The behaviors are as follows: is Empty() return true if IList is empty, i e. info is null and nextList is null. insert (ininfo) returns nothing. Place inlnfo into IList as a new IList at the beginning of the current IList. Given the following IList: insert("G") would produce: nextList() returns IList. If the current list is not empty, it returns a reference to the beginning of the remaining list. If the current list is empty it returns null. If the current list references "G" then this.nextList() would return a reference to "F". If the current list is empty (V) then this nextList() would return null. ISize() returns an integer which counts the number of none-empty sublists in the current list +1. If this references "G" then this. ISize() would return 3. If this references "F" then this.ISize() would return 2/ lf this references then this.ISize() would return 0. deletelnfo(outInfo) returns a reference to the start of the list following the information removed if it then deletelnfo("F") would result in exists. If the linked list is the following linked list G deletelnfo("Z") would change nothing. traverse() returns a string which is the current natural order of the linked list as a comma separated set of strings. Given the linked list, LG F traverse() would return "G, F, A

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!