A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Developer Certification (SCJD/OCMJD)
using toArray in searchcriteria
Kevin Mc Cusker
Joined: Aug 06, 2003
May 16, 2006 12:30:00
Im using an arraylist to add all matches i get in the searchcriteria method. Say for example I have two matches. I then use the following line of code to change it into an array:
Object toArray = myArrayList.toArray();
I dont know why but the size of this array is always 10 times larger than the arraylist - 20 in this example!!.
Any comments welcome
Joined: Feb 02, 2006
May 16, 2006 20:28:00
It is wire. Could you find out what kinds of objects are in the Object array?
subject: using toArray in searchcriteria
Webservice using JAX_WS
search algorithm: clarity and efficiency
Verifying element types of a Vector
toArray function of ArrayList
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015