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]
# 1
Concatenation. StringBuffer. Something like that.
CeciNEstPasUnProgrammeura at 2007-7-13 20:59:21 > top of Java-index,Java Essentials,Java Programming...
# 2
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.
CeciNEstPasUnProgrammeura at 2007-7-13 20:59:21 > top of Java-index,Java Essentials,Java Programming...
# 3
By the way, I hope you give the JVM the 1.2 GBs of RAM it'll need for 600000000 zeroes.
CeciNEstPasUnProgrammeura at 2007-7-13 20:59:21 > top of Java-index,Java Essentials,Java Programming...