Updating to NBMs from NetBeans 8.0.1 as some of them are required to run on JDK8
3 import static api.Erasure.arePositive;
4 import java.util.Arrays;
7 public class ErasureTest {
8 public static void main(String[] args) {
9 // BEGIN: variance.erasure.test
10 List<Integer> oneToTen = Arrays.asList(2, 4, 6, 8, 10);
11 boolean positive = arePositive(oneToTen);
12 System.err.println("positive = " + positive);
13 assert positive : "All the numbers are positive: " + oneToTen;
14 // END: variance.erasure.test