B
BlueBall
What is the most effective way, fastest way to fill up a String with data?
I wrote the following code, any suggestions on how to improve it?
StringBuffer str = new StringBuffer();
for (int i=0; i<10000; i++)
str.append((char) ((int) ((Math.random() * (254)) + 1) ));
Thanks..
I wrote the following code, any suggestions on how to improve it?
StringBuffer str = new StringBuffer();
for (int i=0; i<10000; i++)
str.append((char) ((int) ((Math.random() * (254)) + 1) ));
Thanks..