Skip to content

Latest commit

 

History

History
7 lines (5 loc) · 239 Bytes

File metadata and controls

7 lines (5 loc) · 239 Bytes

DiamondOperator in Java 7

Concept

The diamond operator is just a shorthand that lets the compiler infer the generic type from context, saving you from repeating yourself.

Example

See DiamondOperator.java