diff options
Diffstat (limited to 'Master/Reference Architectures and Patterns/hjp5/examples/Listing1007.java')
| -rw-r--r-- | Master/Reference Architectures and Patterns/hjp5/examples/Listing1007.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Master/Reference Architectures and Patterns/hjp5/examples/Listing1007.java b/Master/Reference Architectures and Patterns/hjp5/examples/Listing1007.java new file mode 100644 index 0000000..592aa3e --- /dev/null +++ b/Master/Reference Architectures and Patterns/hjp5/examples/Listing1007.java @@ -0,0 +1,16 @@ +/* Listing1007.java */
+
+public class Listing1007
+{
+ public static void mitAutoboxing(int arg)
+ {
+ Integer i = arg;
+ int j = i + 1;
+ System.out.println(i + " " + j);
+ }
+
+ public static void main(String[] args)
+ {
+ mitAutoboxing(new Integer(17));
+ }
+}
\ No newline at end of file |
