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