View Single Post
Old 02-17-2005, 05:12 AM   #2 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,175
Belisarius is on a distinguished road
A Vector is an Object. Vectors contain Objects. Ergo, a Vector can contain Vectors just like any other Object.

It sounds like you might want to create a new class to contain your values rather than use a Vector. Unless you're using Java 1.5, you'll have a lot of casting back and forth, as those ints will need to be put into Integers and then pulled out.

You can then put your new class into a Vector (although I'd suggest ArrayList as a lighter-weight class).
__________________
GitS
Belisarius is offline   Reply With Quote