You don't create an ArrayList with a particular length. Instead you create one and it will grow as data is added to it. In this respect instances of ArrayList are easier to work with than arrays...