i have created synchronized arrayList like this
import java.text.SimpleDateFormat; import java.util.*; class HelloThread { int i=1; List arrayList;
You may not modify a Collection that you are iterating. You can work around this by accessing the array entries by index, not through an Iterator. I can provide more advice if you tell me the problem that you are trying to solve with this code.