How do I resolve this error when I run my program? I can pinpoint that it has to do with adding a string to the ArrayList in the doubleValues(ArrayList<String list>) method. When I use the loop to print out the list it runs just fine. java.util.ConcurrentModificationException at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:909) at java.util.ArrayList$Itr.next(ArrayList.java:859) at com.codegym.task.task07.task0717.Solution.doubleValues(Solution.java:33) at com.codegym.task.task07.task0717.Solution.main(Solution.java:21) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498)