ㄓㄤㄑㄧㄤ

java判断A字符串是否包含B字符串

public static void main(String[] args)
{

String str="ABC_001";
if(str.indexOf("ABC")!=-1){
System.out.println("包含");
}else{
System.out.println("不包含");
}
}
posted @ 2014-08-26 08:57  ㄓㄤㄑㄧㄤ  阅读(69895)  评论(1)    收藏  举报
哈哈,页脚部分。