String Initialization
Hi,I want a String initialized with a huge numbers of zeros (600000000).How can I do?Thank you
[122 byte] By [
mangustaa] at [2007-10-2 19:17:10]

Oh, you mean 60000000 zeros. Then definiely Stringbuffer. Or create a char[600000000] (if the number is still a valid int), initialize those to '0' in a loop and use the String(char[]) ctor.If the number isn't a valid int anymore, you can't create such a String.