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