how to check if a string constains a character code example Example: java if string contains character if (string.contains(character)