java program to check if a word has certain caracters code example Example: how to check if there is a character in a string java String.contains()