X1125: Adding to Maps - Tracking Records

The soccer team is using a Map to track which students have or haven't submitted their medical records. The map is using team member's names as keys. A value of true means this person has submitted their forms. A value of false means they have not.

  • "Aiden H" has submitted their medical records
  • "Sarah Z" has not submitted their medical records.

Add the key/value pairs listed above to the given map, then return it.

Your Answer:

x
 
1
public Map<String, Boolean> trackRecords(
2
    Map<String, Boolean> recordTrack)
3
{
4
    
5
6
    return recordTrack;
7
}
8
Reset

Practice a different Java exercise

Feedback

Your feedback will appear here when you check your answer.