I'm supposed to start using an ArrayPlus class to contain a flexible array, somewhat like a vector. Does that mean that when I use a set method or a retrieve method I use array commands or vector commands? i.e get is a vector command and you'd use an index value, and array would get the value at the array index. Does anyone have an example I could look at? When I create this new array I use a vector call like, ArrayPlus array = new ArrayPlus(); I'm just a little confused, an explanation or an example would be awesome. I'm assuming ArrayPlus class is something known to everyone in the java community...Thanks
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Joined: Oct 13, 2006
it was described as a class that we would have to create, but now that you mentioned arraylist and I looked it up, it sounds more and more like what we are supposed to be doing. If I were to create an interface "ADTList", followed by a class Arraylist which implemented that interface. How would I go about using clone and comparable?