previous | start | next

Storing Data

Allowed items could be stored in an ordinary array. How big should the array be?

Alternatively items could be stored in an ArrayList.

In this example, assume for the moment that the allowed list is stored in an array and will not be modified.



previous | start | next