QUESTION 5 Assume you have a method (shown below) inside the KWArrayList class, what does this method do public boolean
Posted: Tue Jul 05, 2022 10:33 am
QUESTION 5 Assume you have a method (shown below) inside the KWArrayList class, what does this method do public boolean test( E item) { for (int j = 0; j < size; j++) { } if (item. equals(theData[j]) return false; theData[size] = item; size++; return true; } a. Remove all occurrences of item from the list. b. Remove the first occurrence of item from the list. O c. Add an item to the end of the list, if it does not exist in the list. d. Add item to the beginning of the list, if the item does not exit in the list.