Java Java Maps Java Maps Java Maps Quiz

How to solve Java Maps

I was solving Java Maps answer where need to fill the blank so I did Map<String, String>

1 Answer

Steven Parker
Steven Parker
182,307 Points

You were close, but if you look a few lines down, you can see that both "Student" and "Grade" are classes. And in declarations, you use class names just like a type. So for this declaration, you would use "Map<Student, Grade>".