Hacker News new | ask | show | jobs
by ionised 3033 days ago
> List<String> foo = new ArrayList<String>()

List<String> foo = new ArrayList<>()

> so why should the programmer have to write it twice?

You wouldn't.