ArrayList example program.