In my application contains one Arraylist which i am adding value for every minute.
Initially I want to add one value for thousands time for that arraylist for that my code is
int count = 30000; Arraylist mylist = new Arraylist();for(int i=0;i<count;i++)
{
mylist.add("4.5");
}
In the above code it is taking large time to complete the for loop and my app is getting slow . Is there any alternate way to add the value to array list fastly with one click?