src/main/java/seedu/planner/model/ModelManager.java
private void populateDayMap(List<Day> days) {
        for (Day day : days) {
            List<ActivityWithTime> activities = day.getListOfActivityWithTime();
            for (ActivityWithTime act : activities) {
                if (activityDayMap.containsKey(act.getActivity())) {
                    activityDayMap.get(act.getActivity()).add(day);
                } else {
                    activityDayMap.put(act.getActivity(), new ArrayList<>(Arrays.asList(day)));
                }
            }
        }
    }
/**
     * Iterates through the {@code Itinerary} and creates a mapping between an {@code Activity} and the {@code Day}
     * containing it.
     */
Iterates through the  Itinerary and creates a mapping between an  Activity and the  Day
containing it.
Iterates through the Itinerary and creates a mapping between an Activity and the Day containing it .
private void populateDayMap(List<Day> days) {
        for (Day day : days) {
            List<ActivityWithTime> activities = day.getListOfActivityWithTime();
            for (ActivityWithTime act : activities) {
                if (activityDayMap.containsKey(act.getActivity())) {
                    activityDayMap.get(act.getActivity()).add(day);
                } else {
                    activityDayMap.put(act.getActivity(), new ArrayList<>(Arrays.asList(day)));
                }
            }
        }
    }
private void populateDayMap ( List < Day > days ) { for ( Day day : days ) { List < ActivityWithTime > activities = day . getListOfActivityWithTime ( ) ; for ( ActivityWithTime act : activities ) { if ( activityDayMap . containsKey ( act . getActivity ( ) ) ) { activityDayMap . get ( act . getActivity ( ) ) . add ( day ) ; } else { activityDayMap . put ( act . getActivity ( ) , new ArrayList < > ( Arrays . asList ( day ) ) ) ; } } } }
Iterates through the {@code Itinerary} and creates a mapping between an {@code Activity} and the {@code Day}
 containing it.
Iterates through the { @code Itinerary } and creates a mapping between an { @code Activity } and the { @code Day } containing it .