News

The inclusion of the diamond operator (<>) in Java SE 7 means that code that instantiates generic classes can be less verbose. Coding languages in general, and Java in particular, ...
List<String> neil = new ArrayList<String>(); //Java 5 generics List<String> neil = new ArrayList<>(); //Java 7 diamond operator. The diamond operator copies the generic type defined on the left of an ...