[Solved] ArrayList for handeling many Objects?
If you have constant pool of Excersises, and you only need to access them by index, then you can use array instead: Excersise[] excersises = new Excersise[EXCERSIZE_SIZE]; //fill excersises //use excersises workout.add(excersises[index]); ArrayList is designed to have fast access to element by index, and it is using array underneath, but it has range check inside … Read more