String str = "ABC_001";
Stringstr1 = "ABC";
if(str.indexOf("_00") != -1) {
System.out.println("包含");
}
else{
System.out.println("不包含");
}String str = "ABC_001";
Stringstr1 = "ABC";
if(str.indexOf("_00") != -1) {
System.out.println("包含");
}
else{
System.out.println("不包含");
}