Help needed regarding ArrayList or similar containing activities to be executed
Hi,
I want to create some kind of list, array or similar that contains activities (that are described in separate classes) that are supposed to be executed in a consecutive order.
For example we could have activities/classes "Warming up", "Running", and "Stretching" - what I want is for these to be gathered together somehow, so that I from the main method can extract the first item (warming up) of the container/list/array (or whatever it might be) and then execute that activity by creating the constructor of that class, and after that's been done move forward to the next activity, execute it, and so on. Any tips on how to achieve this would be greatly appreciated!
------------------------
anna