It's been a long time since I coded in Java. I need a two dimensional dynamic construct. I was thinking of using a vector where each member was another vector.
Maybe someone has a better solution. I have a list of items. These items have a type (A, B, C, etc). I want to parse the list of items into lists (vectors) of the same type. So my original list may have 100 items in it. Each item is of a particular type and I want to put that item into another list of like items so I can process each list of items separately. I can't hardcode 3 vectors for example because the number of item types is unknown. Can I use nested Vectors to simulate a "two dimensional array"? Can I access each item in the "array" with nested gets? Does anyone else have a better suggestion for a two dimensional dynamic construct?