G
Guest
I would like to create an unknown number of Arraylists, meaning, I don't know
how many I should create until runtime.
I will be reading a table, and 0,1,2, or more fields have to be put into
individual ArrayLists.
How do I create an unknown number of ArrayLists?
Right now I put all the values into one ArrayList. I know how many fields
are in the ArrayList so I then know that every one, or every other one, or
every third one goes together. I would like three separate lists, OR, a way
to enumerate the fields as I put them in the one ArrayList.
I do know how many fields I have at runtime.
how many I should create until runtime.
I will be reading a table, and 0,1,2, or more fields have to be put into
individual ArrayLists.
How do I create an unknown number of ArrayLists?
Right now I put all the values into one ArrayList. I know how many fields
are in the ArrayList so I then know that every one, or every other one, or
every third one goes together. I would like three separate lists, OR, a way
to enumerate the fields as I put them in the one ArrayList.
I do know how many fields I have at runtime.