author | Jaroslav Tulach <jtulach@netbeans.org> |
Tue, 18 Oct 2011 06:47:43 +0200 | |
changeset 378 | 68bba7c8a1b3 |
parent 181 | samples/primitiveconstants/src-impl/impl/Impl.java@81d72f69fa42 |
permissions | -rw-r--r-- |
1 package test;
3 import api.Covariance;
5 public class CovarianceTest {
6 // BEGIN: variance.covariance.test
7 public static void main(String[] args) {
8 Number n = Covariance.max(10, 20);
9 System.err.println("value: " + n + " type: " + n.getClass());
10 assert n.intValue() == 20 : "The max should be 20, but was: " + n;
11 }
12 // END: variance.covariance.test
13 }