If you use matches, it must match the whole String. String#contains(...) may be what you're looking for, or perhaps you want to put some wild cards before and after your word:
String regex = ".*\\bthe\\b.*";
e.g.,
String text = "the quick brown fox jumps over the lazy dog";
System.out.println(text.matches(regex));