Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ArrayPlus class examples

 
John Lockheart
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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 ]
 
fred rosenberger
lowercase baba
Bartender
Posts: 12087
29
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
did you mean an ArrayList?
 
John Lockheart
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic