Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Recall the Integer ist ADT mibose interface is reprdaced below, Comments are inc

ID: 3711372 • Letter: R

Question

Recall the Integer ist ADT mibose interface is reprdaced below, Comments are incltaded to remind you whal each metlod does) publie intertace IntegerLiatinterface public booLear: ?5Erpt y l); // return true itt 115t has no elements public int sizelx public int get(1nt inde%); // return 11at elesent at índex publicvoid add (int index, int newiten) Insert newiten at inde public void remove (int index): / delete element at index publie wosd removeA1lo1eset 11at to epty atate return nunber of elenents in list 4. Complete the missing tostring) method so that it retms a String representation of the list, tha when peinted, prints the elements of the list, in order, 15 integers per line separated by a space, except for the last winch may have fewer then 15. Assame Int-gérList ?plements the ntegetistintertace above and those operations ae you caly optious for accessing IntegerList. Note, your method does not print anything public class Intlist extends Integerist public string tostring0

Explanation / Answer

public class IntList extends IntegerList { public String toString() { String str = ""; for(int i = 0; i