public class IntegerExamples { public static void main (String[] argv) { // Instance of Integer: Integer I = new Integer (5); // Ordinary int: int i = 6; // Integer + int, with result stored in an int. int n = I + i; // The same with the result stored in an Integer. Integer N = I + i; // Comparison operator across types. if (N == n) { System.out.println ("N=" + N + " n=" + n); } // See how the add method is declared. Integer S = add (i, I); System.out.println (I + "+" + i + "=" + S); } static int add (int a, int b) { return (a + b); } }