how to create a list integer with values in it in java code example Example: int list in java List<Integer> list = new ArrayList<Integer>();