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