标签:java ar c text 字符串 as print class public
public static void main(String[] args)
{
String str="ABC_001";
if(str.indexOf("ABC")!=-1){
System.out.println("包含");
}else{
System.out.println("不包含");
}
}
标签:java ar c text 字符串 as print class public
原文地址:http://www.cnblogs.com/azhqiang/p/3936441.html