I personally use ArrayList instead of Arrays. You can use a helper method to convert the arraylist to an array. That way you don't have to set the initial or default size of the array. It also prevents OutofBound exceptions.