Re: Strings and things...
use:
Code:
StringStuff.insert(mySearch,rand);
instead of :
Code:
StringStuff.setCharAt(mySearch, rand);
By the way, there is a method in java.lang.String called trim(); it Returns a copy of the string, with leading and trailing whitespace omitted.
Re: Strings and things...
Thanks for the reply :)
I guess i should have looked up stringbuffer on the sun site before posting :o
Never saw insert lol
Hopefully it will work though, i don't have my code on this pc so i can't test it right now unless i make a little sample project...but i can wait :)
Anywho, this will be great if it does work - the methods my professor was recommending involved alot more code and dealing with arrays and subarrays being held in temp strings etc.... my code will be faster i think.
Anymore suggestions would be nice; maybe a faster way? or something i don't know about..or any links to sites with some reading on strings and file i/o would be appreciated.
-Kevin
:wave: