- 博客(2)
- 资源 (4)
- 收藏
- 关注
原创 判断最后的字符是不是possible
1,判断最后的字符是不是possible, 用endswith方法,接下来再替换2,替换最后一个可以变项的作String s = "The possible problem is, How is that possible";if(s.endsWith("possible")){ String s1 = s.substring(0, s.lastIndexOf("possibl...
2012-03-01 09:42:27 68
原创 字符串的替换问题
如何替换指定位置的字符串(另附String类常用方法)2009-10-13 15:55这里给出字符串的两个位置,pos1和pos2, 如何替换pos1和pos2之间的字串答:用subString , String.substring(0,pos1)+newString+String.substring(pos2+1) 另附java字符串操作方法:在JAVA语言中,字符串...
2012-03-01 09:36:28 101
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人