Java Java Data Structures Efficiency! Implement Chooser UI

Dinu Comendant
Dinu Comendant
2,908 Points


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

1 Answer

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>>