如何判断string a 是否包含string b?

String test = "abc_一二三";
if(test.indexOf("abc")!=-1){
	System.out.println("一二三");
}

支持中文

FacebookTwitterGoogle+Share

Leave a Reply

Your email address will not be published. Required fields are marked *