| Author |
ArrayPlus class examples
|
John Lockheart
Ranch Hand
Joined: Oct 13, 2006
Posts: 115
|
|
|
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[3] 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
|
 |
Paul Sturrock
Bartender
Joined: Apr 14, 2004
Posts: 10336
|
|
I'm assuming ArrayPlus class is something known to everyone in the java community...
Nope. Where did you get it from? Or do you have to write it? [ May 22, 2007: Message edited by: Paul Sturrock ]
|
JavaRanch FAQ HowToAskQuestionsOnJavaRanch
|
 |
fred rosenberger
lowercase baba
Bartender
Joined: Oct 02, 2003
Posts: 9956
|
|
|
did you mean an ArrayList?
|
Never ascribe to malice that which can be adequately explained by stupidity.
|
 |
John Lockheart
Ranch Hand
Joined: Oct 13, 2006
Posts: 115
|
|
|
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?
|
 |
 |
|
|
subject: ArrayPlus class examples
|
|
|