Very straightforward question: how can I measure the distance between two words in a text in Java? For example, the text could be:
The color of the car is blue.
How can I get the distance of the word color and blue in this sentence? I know that the distance from color to blue is 5. How can I get this distance of 5 in Java?
Thanks in advance.