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