Hi,
ArrayList arrL = new ArrayList();
ArrayList tmpArrL = new ArrayList();
for (int i = 0; i < size; i++) {
Character ch = new Character(text.charAt(i));
arrL.add(ch);
}
tmpArrL = arrL;
------;
------;
String newText = "";
for (int i = 0; i < arrL.size(); i++) {
newText += tmpArrL.get(i);
}
return newText;
In some cases the arraylist contains around 500000 characters. in this situtation tool gets hanged and it takes
alot of time to execute the for loop.
Please let me know how to handle this situation.
Thanks,