demo for creating a fixed-size list from an array.
How to use ArrayList.