A personal exercise for implementing the stack data type with a Java ArrayList.