Hacker News new | past | comments | ask | show | jobs | submit login

Until java 7 you had to write:

    List<String> list = new ArrayList<String>();
It feels silly to have to write the type parameter twice. But now you can say:

    List<String> list = new ArrayList<>();
It's usually not a huge deal, but occasionally the stutter can be more pronounced:

    Map<String, List<Map<Integer, Set<Float>>>> map = ...



Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: