The ArrayList class is commonly used to store varying amounts of data.

See the API doc: http://docs.oracle.com/javase/7/docs/api/