I need some help with java comparator. I need to compare strings by the number of words they contain.
For example, "hello" comes before "I see" which comes before "I see you".
Anyone got any ideas how I would do this? Thank you in advance for any help you could give.