首页 > 编程语言 > 详细

java函数substring()

时间:2016-02-21 21:18:51      阅读:177      评论:0      收藏:0      [点我收藏+]

String str;

str=str.substring(int beginIndex);截取掉str从首字母起长度为beginIndex的字符串,将剩余字符串赋值给str;

str=str.substring(int beginIndex,int endIndex);截取str中从beginIndex开始至endIndex结束时的字符串,并将其赋值给str;

java函数substring()

原文:http://www.cnblogs.com/LicwStack/p/5205516.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!