import java.util.*; public class AutoboxingExample { public static void main (String[] argv) { // One of each. Integer I = 5; int j = 6; // Mixed sum of Integer and int: Integer K = I * j; // Use of Integer's with comparison operators: if (K == 30) { System.out.println ("K=30"); } // Here, I gets converted to an int. The return type of // add() is an Integer, which gets converted to the int "sum". int sum = add (I, j); System.out.println ("Sum=" + sum); } static Integer add (int a, int b) { // Automatic conversion to Integer of result. return (a + b); } }