that would be the best way to create an ArrayList ...
# stdlib
v
that would be the best way to create an ArrayList filled with one element:
ArrayList<E>(num).fill(item)