I'm assuming you meant that you are trying to decide between an ArrayList and HashMap!
I use a HashMap to represent a row in a table. The key is column name and the value is the column value. I add each row ( HashMap ) to an ArrayList which represents a table. Unfortunately the class is at work and I'm at home, so I can't post the code. Something similar was posted by Peter in the
JDBC forum, so I'll try to dig it up. You could add another column to each HashMap for specifying rent/buy choice.
Anyways,
you should stick to ArrayLists and HashMaps instead of Vector and Hashtable as they are outdated and not as flexible.
Jamie
[ April 12, 2003: Message edited by: Jamie Robertson ]