A small bit of code to assist people (including myself) in learning how to use array lists