× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Ron,

You can create a Vector of Vectors as many levels deep as you would
like. However, I tend to shy away from writing business related code
that embeds objects in nested implementation specific structure. I would
also program to the underlying interface so the fact that you actually
used a Vector is transparent. So you would end up with code like:
List address = new Vector();
address.put(properties);
If you are being told to use a Vector, I do a sanity check to make sure
that a List is more appropriate than a Set, Collection or Map. The main
purpose of a List is the ability to insert at a particular position and
indexed/ordered retrieval.

David Morris

>>> RPower@xxxxxxxxxx 03/28/05 12:30 PM >>>
Can I do a 2 dim vector?

What I have is a list of streets, and for each street there is a list
of 
propertys.  I have a street object that I'm putting in a vStreet vector

now.  I have a Property object that I'd like to put in a vProp vector
that 
is located in an index of the vStreet vector?  Any ideas?  I know 
ArrayList is better, but I was told to use a Vector :(

Ron Power

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.