Memory issues with String.split()

Viewed 3537

My programs currently has memory problems, and upon checking the app, we've discovered that the String.split() method uses lots of memory. I've tried using a StreamTokenizer, but it seems this makes things even more complex.

Is there a better way to split long Strings into small Strings that uses less memory than the String.split() method?

4 Answers
Related