MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/java/comments/1dc8cl3/deleted_by_user/l7z90oa/?context=3
r/java • u/[deleted]
[deleted] — view deleted post
594 comments sorted by
View all comments
Show parent comment
5
With later versions of Java you can do:
var userIdMap = new HashMap<String, User>();
So that cuts down on some repetitive code but you still know what type the map is.
View all comments
Show parent comment
5
u/Top_File_8547 Jun 10 '24
With later versions of Java you can do:
var userIdMap = new HashMap<String, User>();
So that cuts down on some repetitive code but you still know what type the map is.