How do you write a code that Returns true if s(a string) contains none of the characters found in chars(another string) or false otherwise?
char[] original = s.toCharArray();
char [] sub = chars.toCharArray();
for(int i = 0; i <s.length(); i++)
{
if (s.contains(chars)
{
return true;
}
}
return false;