r/programming • • Feb 22 '15

Java Makes Programmers Want To Do Absolutely Anything Else With Their Time

http://www.forbes.com/sites/quora/2015/02/21/java-makes-programmers-want-to-do-absolutely-anything-else-with-their-time/
35 Upvotes

636 comments sorted by

View all comments

Show parent comments

-6

u/[deleted] Feb 22 '15

new HashMap();

new HashMap <String, Set>();

5

u/[deleted] Feb 22 '15

new HashMap();

new HashMap <String, Set>();

new HashMap<>();

1

u/Pragmataraxia Feb 22 '15

Some time ago, they allowed the template (or whatever Java calls them) variables to be inferred from the variable declaration, so you no longer have to type that part out.