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 trial

Java Java Data Structures - Retired Efficiency! Changing Course

kalyada leosrisook
PLUS
kalyada leosrisook
Courses Plus Student 17,855 Points

I have absolutely no idea what this challenge is asking me to do. Can anyone please explain what I should do here?

I just got past the first one and now I'm stuck again. I don't understand the task question , i don't know what I should do. Can anyone please help me? thank you so much

kalyada leosrisook
kalyada leosrisook
Courses Plus Student 17,855 Points

Sorry I forget to say that this is the 2nd task on this challenge....

1 Answer

andren
andren
28,558 Points

It is asking you to create a Map whose key is the title of a video and the value is the video with said title, and then return that Map.

To do that you'll have to loop though the videos in the course's Video list and populate a new Map (that you have to create yourself) with the title of the individual video as the key and the video itself as the value.

If you are completely stuck then I have posted the solution along with some comments here, but I'd recommend you try solving it on your own first.

You can also ask additional question if there is something specific confusing you about the task.