You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12345678910111213141516 |
- public class AutoboxingJ {
-
- public static void method_takes_Long(Long i) { System.err.println("method_takes_Long="+i);}
- public static void method_takes_long(long i) { System.err.println("method_takes_long="+i);}
-
- public static void main(String[] argv) {
- Long one = new Long(1000000);
- long two = 2000000;
- Long three = new Long(3000000);
- long four = 4000000;
- method_takes_Long(one);
- method_takes_Long(two);
- method_takes_long(three);
- method_takes_long(four);
- }
- }
|