Page 1 of 1

1) Implement add(index, value): you will need to shift elements in the array before adding in the new element, as well a

Posted: Fri Jul 01, 2022 5:42 am
by answerhappygod
1) Implement add(index, value): you will need to shift elementsin the array before adding in the new element, as well as increasethe tracked size.
2) Implement remove(index): you will need to shift elements inthe array to "remove" data, as well as decrease the trackedsize.
3)Throw Exceptions as applicable for both methods.
4)Expand your Main class to prove to yourself that all methodimplementations work appropriately.