public class UnboxExample { public static int sum(int a, int b) { return a+b; } public static void main(String []args) { Integer a = new Integer(5); Integer b = new Integer(10); int result = sum(a.intValue(),b.intValue()); System.out.println("sum: "+ result ); } }