Hello Everybody

I'm working on a Java program that splits a File into tokens, first i split it one word then 2 words and 3 words.

i already did the one word division but i have a problem with 2 and 3 words

please can anybody help me ??