I am new to using ArrayList and Vectors, I usually use Array. Though I am working on an application that comes that is suppose to store numbers (in tuple) that have been generated by some algorithm.
It is suppose to work somethig like this :
The tuples is generated like (d,m)
and then added to the vector.
I would like to help you, but I do not know what problem you are having.
Thanks, sorrry Norberhuis... The problem was I did'nt quite know how to add the elements to the Vector. I checked the API and ithere is an add(Element o) method, though I want to add tuples ...
Implement a Tuple class that wraps your tuples and add objects of that class to the Vector or ArrayList.