Java Java Data Structures Efficiency! Implement Chooser UI

byArtist

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

1 Answer

status 401
status 401
13,974 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>>