// manual boxing vs autoboxing Integer ii; int i; ... // O L D W A Y : manual boxing // convert from int to Integer ii = new Integer(i); // convert from Integer to int i = ii.intValue(); ... // N E W W A Y : autoboxing, conversions are automatically applied. // convert from int to Integer ii = i; // convert from Integer to int i = ii;