compareTo() will see if a word comes before another word in the english lexicon. for example, ant > bone

a.compareTo(b)

Returns an integer. if returning a positive integer, the first string comes before the second string on english dictionary If returning a negative integer, the second string comes before the first string on english dictionary