摘要:
在String中有两个substring()函数,如下:一:String.substring(int start)参数: start:要截取位置的索引返回: 从start开始到结束的字符串例如:String str = "hello word!"; System.out.println(str.substring(1)); System.out.println(str.substring(3)); System.out.println(str.substring(6));将得到结果为: ello word! lo word! ord!如果start大于字符串... 阅读全文
posted @ 2013-10-11 12:39
PianoCoder
阅读(11051)
评论(0)
推荐(0)

浙公网安备 33010602011771号