您的位置:首页 > 编程语言 > Java开发

java String 判断是否包含某字符串

2013-03-18 00:00 309 查看
String.contains() which checks if the string contains a specified sequence of char values

String.indexOf() which returns the index within the string of the first occurence of the specified character or substring (there are 4 variations of this method)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: