Can you use primitive int for arraylist in java? code example Example: integer arraylist ArrayList<Integer> contractValue = new ArrayList<Integer>();