When I try to convert a double array to a Double arrayList I got the following error:
Exception in thread \"main\" java.lang.ClassCastException: [D ca
Credit to bestsss for the comment which should be the answer:
ArrayList firstValueList = new ArrayList(); for(double d : firstValueArray) firstValueList.add(d);