If you want to learn more about ArrayList class and its usages in Java application, see Big Java: Early Objects by Cay S. Horstmann , one of the most comprehensive guides of Java programming language.