欢迎访问悦橙教程(wld5.com),关注java教程。悦橙教程  java问答|  每日更新
页面导航 : > > > 文章正文

substring,

来源: javaer 分享于  点击 47575 次 点评:160

substring,


java中substring的用法

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

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

---------------------------------------- 转载出处:http://blog.csdn.net/ammmd/article/details/3013901----------------------------------

所以record.substring(2)是指从下标为2开始一直到字符串末尾的子串

相关文章

    暂无相关文章

用户点评