Thread: Arrays in Java
View Single Post
  #3 (permalink)  
Old 07-25-2007, 10:04 PM
Seemster Seemster is offline
Member
 
Join Date: Jul 2007
Posts: 55
Seemster is on a distinguished road
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.
Reply With Quote