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 AutoboxingF {
-
- public static void method_takes_Float(Float i) { System.err.println("method_takes_Float="+i);}
- public static void method_takes_float(float i) { System.err.println("method_takes_float="+i);}
-
- public static void main(String[] argv) {
- Float one = new Float(100.0f);
- float two = 200.0f;
- Float three = new Float(300.0f);
- float four = 400.0f;
- method_takes_Float(one);
- method_takes_Float(two);
- method_takes_float(three);
- method_takes_float(four);
- }
- }
|