Code example for ArrayList

Methods: size, toArray