check if word has given char code example Example: java if string contains character if (string.contains(character)