Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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

Please make me type more redundant words.



It's a bit better since JDK1.7 introduced a modicum of type inference:

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


Came with generics which was introduced in Java 5.

No longer true with Java 7




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

Search: