String str = "1234567";
if(str.indexOf("23") != -1)
{
System.out.println("包含23字符串");
}
java判断字符串包含某个字符段
猜你喜欢
转载自blog.csdn.net/CGG92/article/details/52239338
今日推荐
周排行