Vishal Shaw wrote:Hi,
I did not get it, why do you want to work with 10,000+ String all at a time. If they are not going to be used all at once, try using a few ,work with them make the objects null, notify gc() , then take another bunch.
Still if you want to work with a huge bunch of String object, I would suggest you to use either StringBuffer / StringBuilder. For concat, you can use append() while for replace you can follow the given steps
1> convert the object to String using toString() ,
2> perform replace() on the converted String
3> reinitialize the Builder/Buffer object with the replaced String.
4> Make the String object/s null and notify gc().
Now you have to choose.
Vishal.
Thanks. I think I will do that. Looks like there is no class for my requirements.
I want to execute some
test SQL statements in a batch vs one at a time. When done as a single statement,
Strings can be used. What about a huge 10000
word statement all executed at once ?