how to check if a word is in a string in java code example Example: string contains specific word in java public boolean String.contains(CharSequence s);