check the letters that no contains a string java code example Example: check if a string contains a character java string.indexOf('a')