I am being asked to do the following:
where the keys are names of runners and the values are their times. The keys should be sorted at all times.
This method should iterate over*runners, populating the maps*juniorResults,standardResults*and*seniorResul ts, with the correct names and times of runners.
runners is an ArrayList that stores the information.
I have managed to get working:
for (Runner runner: runners) if(runners.contains("Junior")
I am confused on how to get the names of the runners and the times from the ArrayList so I can populate each of the maps with the right key/value. I am using BlueJ.