Question: The purpose of this assignment is to develop your ability to code GENERIC classes and methods and to understand how the ArrayList data structure dynamically


The purpose of this assignment is to develop your ability to code GENERIC classes and methods and to understand how the ArrayList data structure dynamically adjusts its capacity to store objects. We will do this by taking a do-it- yourself (DIY) approach by building our own ArrayList-Like data structure called "ArrayBox". This assignment has its own set of slides that we discussed in class. Those slides are available in Moodle under "Slides" and are entitled simply "arraybox.pdf". Refer to that presentation for details of what needs to be replicated. In general, you must: Create a generic class called ArrayBox that uses a STATIC array of SIZE 2 elements only. Also have the class contain an index variable that refers to the index of the next available spot in your array that can contain an object. Your ArrayBox declaration needs to look similar to this: public class ArrayBox
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
