arraylist list = new arraylist() intial size code example Example: java create arraylist with size ArrayList<Integer> arr=new ArrayList<Integer>(10);