Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialRossana Frazao de Menezes
5,349 PointsGet key from Map
Hi there!
I'm having a lot of issues with these quizzes.
Again, what am I missing here?
Grade ravisGrade = studentGradeMap.get("ravi");
1 Answer
Jennifer Nordell
Treehouse TeacherHi there, Rossana Frazao de Menezes! You're very close, but ravi
isn't a string. It's a variable name. Now granted, the student's name might be "Ravi" or "ravi", but the key is still a variable name. You would need studentGradeMap.get(ravi);
without the quotation marks.
Hope this helps!
Mary McCallum
5,483 PointsMary McCallum
5,483 PointsRossana Frazao de Menezes Thanks for asking this, I had the same frustration.