How do I pass an ArrayList from one method to another in Java?
I need to create an empty list in one method and save the reference. Then, I need to pass the reference to another method where the list is populated with shapes and their parameters.
I need to create an empty list in one method and save the reference. Then, I need to pass the reference to another method where the list is populated with shapes and their parameters.