Question: X 2 7 8 : ListADT Use appropriate method calls from the List ADT to create the following list: 4 1 9 | 2 3

X278: ListADT
Use appropriate method calls from the List ADT to create the following list:
419|2330>
You should assume that L is passed to the function as an empty list.
Your Answer:
public List buildList(List L){
L. insert(, Integer.valueof(4));
line 3: error: method insert in interface List cannot be applied to given types;
required: java.lang.Object
L.insert(1, Integer.valueOf(19));
L. insert(2, Integer.value0f(23));
L. insert(3, Integer.valueof(30));
return L;
}
 X278: ListADT Use appropriate method calls from the List ADT to

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!