I am currently doing an app that will have many exercises (for working out) which each contain 5 different strings. They are linked to workouts that are basically arrays of exercises (but more than one workout can have the same exercise and I don't want to waste memory), and then workouts are displayed in different categories (weight loss, body building, etc..).
If I was doing this in C (which is the language I usually program in) I would have the exercises to be an array of a structure called exercise, then the workout would be linked lists with each link being a pointer to the exercise, with an int for reps and an int for sets. And the workouts would be organized in an array of pointer pointing to the first element of the linked list (so a workout can be in multiple categories). Is there a way to implement something like that in java?