File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes ArrayPlus class examples Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "ArrayPlus class examples" Watch "ArrayPlus class examples" New topic
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: 10929
    
  12

did you mean an ArrayList?


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ArrayPlus class examples
 
Similar Threads
Modifying DataInfo
Code not working...
Problems with JTable and Vectors
Collections Framework - use of Vector