Hi thanks for the reponse,
I tryed using a StringBuffer and it is significantly faster however on repeated attempt I get a java.lang.OutOfMemoryError
I tried setting the Buffer to null after each search but to no avail.
Here is the extract
StringBuffer x = new StringBuffer();
for ( j = 0; j < tokens.length; j++) {
//casting object into a
string array
a = (String[]) tokens[j];
//int t = j-1;
x.append("\n Result Number "+(j+1)+"\n");
for (int i = 0; i < a.length; i++) {
print = (String) a[i] + '\n';
x.append(print);
//print =print +'\n'+ aa;
}
x.append("\n");
//print =print +'\n';
}
//text.(print);
x.append("\n Number of Results = "+j);
text.setText(x.toString());
time();
x = null;
Any help appreciated.
Thanks
Aran