added java code for getExerciseList