-
Array Help
Hi All,
I have an Input Array that I need to split into smaller arrays. But I don't know how many smaller arrays before hand. It might be 2, 3 maybe 400, I want to the program to be able to handle any number of smaller arrays, and I don't know the size of the smaller arrays until I process the Input Array. Do I need to declare a large number of arrays with a huge size and only use the ones I need? OR is there a way to dynamicly create these arrays? Thanks
-
Do some reading on ArrayLists. They can contain any object, including other ArrayLists. They're dynamic aswell, which means you don't need to know the size of them at the start.
Good luck.