.setXXXXXXXXXXXXXXXXXX(0);具体是啥,自己查.

解决方案 »

  1.   

    好像没有flush阿
    另外,只有setLength()阿,好像都不行
      

  2.   


    if(sb.length()>0)
    sb.delete(0,sb.length());
      

  3.   

    StringBuffer delete(int start, int end) 
              Removes the characters in a substring of this StringBuffer. 
     StringBuffer deleteCharAt(int index) 
              Removes the character at the specified position in this StringBuffer (shortening the StringBuffer by one character).