public boolean contains(String str){
  for (  String text : logs)   if (text != null && text.contains(str))   return true;
  return false;
}

public boolean contains ( String str ) { for ( String text : logs ) if ( text != null && text . contains ( str ) ) return true ; return false ; }
returns true if and only if this string contains the specified sequence of char values .
