skillifier/src/main/java/rage/services/ExerciseListingService.java
public List<Exercise> addUserSpecificInfoToExercises(User user, String courseName) {
        List<Exercise> exercises = exerciseDao.findExercisesByCourse(courseName);
        List<UserExercise> userExercises = userExerciseDao.findByUserAndCourseName(user, courseName);
        Map<String, Exercise> map = new HashMap<>();
        exercises.forEach(exercise -> map.put(exercise.getName(), exercise));
        setExerciseFields(userExercises, map);
        return exercises;
    }
/**
     * Find the Exercises of the specified Course (per User) to inform TMC-Core about
     * the state of the Exercises, such as (attempted, completed).
     * @param user The User whose Skills you want to fetch
     * @param courseName The specified Course name that is the parent of the Exercises
     * @return (List of type Exercise) The list of Exercises
     */
Find the Exercises of the specified Course (per User) to inform TMC-Core about
the state of the Exercises, such as (attempted, completed).
@param user The User whose Skills you want to fetch
@param courseName The specified Course name that is the parent of the Exercises
@return (List of type Exercise) The list of Exercises
Find the Exercises of the specified Course ( per User ) to inform TMC - Core about the state of the Exercises such as ( attempted completed ) . @param user The User whose Skills you want to fetch @param courseName The specified Course name that is the parent of the Exercises @return ( List of type Exercise ) The list of Exercises
public List<Exercise> addUserSpecificInfoToExercises(User user, String courseName) {
        List<Exercise> exercises = exerciseDao.findExercisesByCourse(courseName);
        List<UserExercise> userExercises = userExerciseDao.findByUserAndCourseName(user, courseName);
        Map<String, Exercise> map = new HashMap<>();
        exercises.forEach(exercise -> map.put(exercise.getName(), exercise));
        setExerciseFields(userExercises, map);
        return exercises;
    }
public List < Exercise > addUserSpecificInfoToExercises ( User user , String courseName ) { List < Exercise > exercises = exerciseDao . findExercisesByCourse ( courseName ) ; List < UserExercise > userExercises = userExerciseDao . findByUserAndCourseName ( user , courseName ) ; Map < String , Exercise > map = new HashMap < > ( ) ; exercises . forEach ( exercise -> map . put ( exercise . getName ( ) , exercise ) ) ; setExerciseFields ( userExercises , map ) ; return exercises ; }
Find the Exercises of the specified Course (per User) to inform TMC-Core about
 the state of the Exercises, such as (attempted, completed).
Find the Exercises of the specified Course ( per User ) to inform TMC - Core about the state of the Exercises such as ( attempted completed ) .