public class SubString {
public boolean[] chkSubStr(String[] p, int n, String s) {
boolean [] str=new boolean[n];
for (int i = 0; i < p.length; i++) {
int result = s.indexOf(p[i]);
if(result!=-1){
str[i]=true;
}
else{
str[i]=false;
}
}
return str;
}
Copyright © 2009-2022 www.wtcwzsj.com 青羊区广皓图文设计工作室(个体工商户) 版权所有 蜀ICP备19037934号