I'm developing an internal application that will query a database. One page grabs rows of information and displays them in one table. Each row has an assigned checkbox, and there is a delete button below the table. Each checked row should be deleted when the button is pressed. I've stored the checkbox IDs in an ArrayList.
The ArrayList is created in function A (the query function). When the delete button is pressed, it totally clears and recreates the form and class to load function B (the delete function).
The problem: This clears my ArrayList. Nothing will ever get deleted because the ArrayList will always be empty in function B.
How do I pass an ArrayList between functions? -OR- If it's not possible, how would I get this information from function A to function B?