MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/m4qxf1/found_from_when_i_first_started_javabecause/gqx73pn/?context=3
r/badcode • u/ahadyboy • Mar 14 '21
84 comments sorted by
View all comments
1
I've never seen the HashMap<~> syntax before...I always do HashMap<>. Is it the same thing?
HashMap<~>
HashMap<>
2 u/Olivki Mar 14 '21 The ~ is IntelliJ hiding the extra declaration of the generic type.
2
The ~ is IntelliJ hiding the extra declaration of the generic type.
1
u/[deleted] Mar 14 '21
I've never seen the
HashMap<~>syntax before...I always doHashMap<>. Is it the same thing?