JAVA截取字符串并返回String类型方法是什么? 我很急,求高手解决 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 求人不如求己,查APIAPI在手,天下我有,API原文如下 String substring(int beginIndex, int endIndex) Returns a new string that is a substring of this string. 截取字符串肯定是用substring()呀,不知你问的是否是这个意思!substring()的第一个参数:从哪个位置开始截取,索引为0表示第一个字符第二个参数:截取到哪个位置结束,截取位置包含前者不包含后者 可查API用substring(int beginIndex, int endIndex) 可截取字符串, 有API不查, 怎么学习, 怎么进步, 哎 substring(int beginIndex) substring(int beginIndex, int endIndex) API里面有可以去查一下。 API啊 楼主 自学 很重要的 substring啊,有两重载的方法。 String substring(int beginIndex, int endIndex) 新手。希望有人回答,先行谢过 web应用为什么每一次启动后,加载时间都要很久15~30分钟 有关网络爬虫速度 求助 大批量数据导入性能方面问题 关于jboss-portal问题 向j2ee过来人请教! xfire与空格 HQL是否支持位运算? hibernate问题 参数是否可以一样? java连MYSQL保存当前时间问题
API在手,天下我有,API原文如下
String substring(int beginIndex, int endIndex)
Returns a new string that is a substring of this string.
substring()的第一个参数:从哪个位置开始截取,索引为0表示第一个字符
第二个参数:截取到哪个位置结束,截取位置包含前者不包含后者
用substring(int beginIndex, int endIndex) 可截取字符串,
substring(int beginIndex, int endIndex)
可以去查一下。