I'm looking to create an Arraylist of double arrays. Is there any way I can fill it without declaring an array each time? i.e.:
This, of course, does not work, but just trying to give you an idea of what I'm looking for. The other option would be if I could fill a single array and keep adding those, but as far as I can see, Java
doesn't allow you to fill an entire array in one line of code unless you are initializing it in the same line.
Does anyone have any suggestions? About the only thing that seems plausible to me now would be to create a new array each time, which seems counter-intuitive.
Thank you very much for your input!!