array of arraylist and save arraylist
in
Programming Questions
•
1 year ago
Hello all,
I have two questions to arraylists
1.
Is it possible to have an array of arraylists?
I have multiple drawings each represented in an arraylist (one per page in a sketchbook) (or planning to do so).
These couple of drawings / arraylist I'd like to store in an array.
How would this beast look like? Or mission impossible?
2.
This arraylist is an arraylist of objects.
Is it possible to save the arraylist with all its objects to the hard drive? Without the saving routine knowing what's in the arraylist? This would be a universal solution. Or is there a library for that?
I could save the all the arraylists objects in a loop to text-file instead and then read it later but that sounds very slow and complicate.
The questions both are related to
http://www.openprocessing.org/visuals/?visualID=49173
and trying to develop this project further.
Thanks very much!
Greetings, Chrisir
I have two questions to arraylists
1.
Is it possible to have an array of arraylists?
I have multiple drawings each represented in an arraylist (one per page in a sketchbook) (or planning to do so).
These couple of drawings / arraylist I'd like to store in an array.
How would this beast look like? Or mission impossible?
2.
This arraylist is an arraylist of objects.
Is it possible to save the arraylist with all its objects to the hard drive? Without the saving routine knowing what's in the arraylist? This would be a universal solution. Or is there a library for that?
I could save the all the arraylists objects in a loop to text-file instead and then read it later but that sounds very slow and complicate.
The questions both are related to
http://www.openprocessing.org/visuals/?visualID=49173
and trying to develop this project further.
Thanks very much!
Greetings, Chrisir
1