Friday, November 9, 2007

java nuisance of the day.

Strange how the string class ( which is final) has methods that do very neat find and replace.

YET the stringBuilder class - that is something that is mutable only has simple find and replace operatoins.

So if you wnat to do a find and replace on a large string java WANTS you to make a huge copy not operate in place. Perhaps the garbage collector needs more work.

back to TMA.

No comments: