1 List<Long> longList = new ArrayList<>(); 2 long i = 4; 3 longList.add( i ); //autoboxing 4 long j = longList.get( 0 ); //unboxing 5