public class TestStuff20170119
1: //TestStuff20170119.java
2:
3: import java.lang.System;
4:
5: public class TestStuff20170119
6: {
7: static private int n;
8: static private String s;
9: public static void main(String[] args)
10: {
11: System.out.println(n);
12: System.out.println(s);
13:
14: //Before Java 5 we had to do this ...
15: Integer k = new Integer(6);
16: System.out.println(k.intValue());
17: //Java 5 gave us "boxing" and "unboxing" so we can now do this ...
18: Integer i = 6; //boxing
19: System.out.println(i); //unboxing
20:
21: System.out.println(Integer.MAX_VALUE);
22:
23: System.out.println(2 * Integer.parseInt("123"));
24: }
25: }