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;
}
原文地址:https://blog.51cto.com/14232658/2455129
时间: 2024-11-09 04:35:09