I have a variable like that:
List frameList = new ArrayList(); /* Double elements has added to frameList */
H
Guava has a method to do this for you: double[] Doubles.toArray(Collection)
This isn't necessarily going to be any faster than just looping through the Collection and adding each Double object to the array, but it's a lot less for you to write.
Collection
Double