Java Java Data Structures Efficiency! Implement Chooser UI

Dinu Comendant
Dinu Comendant
2,788 Points

byArtist

I was wondering, can't we write Map<String, mSongs> instead of Map<String, List<Song>> ? Aren't they the same?

1 Answer

<noob />
<noob />
16,812 Points

I’m not sure but when u declare a Map u need to be explicit about the type of data structure your going to use. and because of that you have to write List<string,List<Song>>