Web programming >> Java Help
Posted by Driver on 03:13:00 06-19-2002
k. . . I was wondering if anyone could explain to me what is meant by this question that I am working on:

Write a Complete adapter class that implements the sequence ADT using a java.util.Vector object.

Any help would be great! [addsig]
Posted by sacah on 17:31:00 06-19-2002
http://java.sun.com/products/jdk/1.1/docs/api/java.util.Vector.html
will explain the use of java.util.Vector Class.

http://www.cs.olemiss.edu/~hcc/softArch/notes/RankedSequence.html
should help you figure out sequence ADT etc.

I dont know much java, but I would think the aim of the question is to get you to:
Use java.util.Vector to make a sequence ADT.

Hope that helpped, my knowledge of java was virtually nonexistant, and since its been like 1-1.5years since i last programmed in it, its like all gone.
(-;
Posted by neonbjb on 06:23:00 12-21-2002
Im guessing you know what an Abstact Data Type is(not the gay computer science definition [in c++]). If that is your problem, you probably have an interface that defines some type of sequence. Can you post that sequence interface? after that, i may be able to help you. [addsig]
Posted by craigbaxter on 05:00:00 01-25-2003
Hi

I'm not sure about what you're level of understanding is, so:

a vector is (very basically) a data storage container (like an array) that does not need to be defined in size (so can grow as is needed).

What the question is asking you to do is provide a java class that represents a sequence (not sure whether this is an ORDERED sequence or not - depends on the requirements of the question). It should allow methods for other java classes to be able to read/write/delete items (whatever they may be) in this sequence.

Hope this helps

Craig