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