java字符串模糊匹配
contains
//在a中模糊搜索b
@Test public void contains(){ String a = "小雨"; String b = "雨"; if(a.contains(b)){ System.out.println("a包含了b"); } }
t.
contains
//在a中模糊搜索b
@Test public void contains(){ String a = "小雨"; String b = "雨"; if(a.contains(b)){ System.out.println("a包含了b"); } }