资讯   |   开发   |   选机中心   |   产品大全 | IBM | 惠普 | 联想 | 戴尔 | 苹果 | 神舟
更多: | 华硕 | 明基 | 方正 | 紫光 | TCL | 夏新 | 联宝 | 宏碁 | 七喜 | 长城 | 清华同方 | 海尔 | 三星 | 东芝 | 索尼 | 富士通 | LG | 技术 | ddnoon
当前位置:笔记本 > 软件开发 >
Advertisement
文章正文

怎么清空一个StringBuffer

类型:转载   责任编辑:asp.net   日期:2007/05/23


热门软件下载:


   

新手提问

网友回答:

发表者:zhifangtu

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

发表者:vcao

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).    
 


 

 
热门推荐笔记本: 明基笔记本
相关文章:
webmaster:popbb@126.com   最佳浏览:1024X768 MSIE
©2007 popbb.net All Rights Reserved