I am not sure I agree with creating an arraylist with the size of all of the components, when you do not know the actual size. This will lean heavily towards creating much larger arrays than necessary. I would just trust the default arraylist constructor.