I have a variable like that:
List frameList = new ArrayList();
/* Double elements has added to frameList */
H
As per your question,
List frameList = new ArrayList();
First you have to convert List to Double[] by using
Double[] array = frameList.toArray(new Double[frameList.size()]);
Next you can convert Double[] to double[] using
double[] doubleArray = ArrayUtils.toPrimitive(array);
You can directly use it in one line:
double[] array = ArrayUtils.toPrimitive(frameList.toArray(new Double[frameList.size()]));