I have an Arraylist that I want to convert to a double[] array. I first convert the Arraylist to a String []. I then try to convert the String[] to a double[] but fail in the p
I would do this:
then this code
for (String s: list1) { boolean obtained = false; double tempD; try { tempD = Double.parseDouble(s); obtained = true; } catch (Exception e) { e.printStackTrace(); } if (obtained) { list2.add(tempD); } }