java arraylist integer code example Example: integer arraylist ArrayList<Integer> contractValue = new ArrayList<Integer>();