用stringbuffer,至于大小的看你的内存。

解决方案 »

  1.   

    用一个String可以吗?还是那个问题,String的长度有限制吗?
      

  2.   

    String的限制好像是int就是2^31-1够大了吧。
      

  3.   

    不知道,假设JVM可用的内存够大的话,下面是我侦察出来的一些蛛丝马迹咳咳我在String.java发现了:
       /** The value is used for character storage. */
        private char value[];    /** The count is the number of characters in the String. */
        private int count;这个value是用来放数据的,count是他的大小,是个int