java arraylist fixed size code example Example: how to make arraylist of fixed size List<Integer> arr = Arrays.asList(new Integer[10]);