java create list of integers code example Example: int list in java List<Integer> list = new ArrayList<Integer>();