1.5. Use the diamond operator with generic declarations - Source Code

Code:


package c1.s5;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Mikalai Zaikin
 */
public class Diamond {
    List<?> list = new ArrayList<>();
}

					

Professional hosting         Free 'Oracle Certified Expert Web Services Developer 6' Guide     Free SCDJWS 5.0 Guide