diff options
Diffstat (limited to 'tests/java5/autoboxing/AutoboxingI.java')
-rw-r--r-- | tests/java5/autoboxing/AutoboxingI.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/java5/autoboxing/AutoboxingI.java b/tests/java5/autoboxing/AutoboxingI.java new file mode 100644 index 000000000..102d6e903 --- /dev/null +++ b/tests/java5/autoboxing/AutoboxingI.java @@ -0,0 +1,16 @@ +public class AutoboxingI { + + public static void method_takes_Integer(Integer i) { System.err.println("method_takes_Integer="+i);} + public static void method_takes_int(int i) { System.err.println("method_takes_int="+i);} + + public static void main(String[] argv) { + Integer one = new Integer(10000); + int two = 20000; + Integer three = new Integer(30000); + int four = 40000; + method_takes_Integer(one); + method_takes_Integer(two); + method_takes_int(three); + method_takes_int(four); + } +} |