java check if string is all one character code example Example: how to check if there is a character in a string java String.contains()