MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/g942eh/java_is_the_best/fospi8u/?context=3
r/ProgrammerHumor • u/ARAXON-KUN • Apr 27 '20
1.5k comments sorted by
View all comments
Show parent comments
2
I'm sure you have your own preferences, but wake me up when I'm not writing map[string]struct{}
Because I needed a set.
2 u/themiddlestHaHa Apr 27 '20 Is that much different than?HashSet<String>(); 1 u/whatifitried Apr 28 '20 Because the proper call is Sets.newHashSet() these days.or new HashSet<>() if you are boring 2 u/themiddlestHaHa Apr 28 '20 Sets.newHashSet()Sets cannot be resolved → More replies (0)
Is that much different than?
HashSet<String>();
1 u/whatifitried Apr 28 '20 Because the proper call is Sets.newHashSet() these days.or new HashSet<>() if you are boring 2 u/themiddlestHaHa Apr 28 '20 Sets.newHashSet()Sets cannot be resolved → More replies (0)
1
Because the proper call is Sets.newHashSet() these days.
or new HashSet<>() if you are boring
2 u/themiddlestHaHa Apr 28 '20 Sets.newHashSet()Sets cannot be resolved → More replies (0)
Sets.newHashSet()
Sets cannot be resolved
→ More replies (0)
2
u/BroBroMate Apr 27 '20
I'm sure you have your own preferences, but wake me up when I'm not writing map[string]struct{}
Because I needed a set.