Finding Combinations of Words

Write a class named CombinationsFinder whose main class prompts the user to enter $n$ words separated by spaces, and a non-negative integer $k \le n$, and then displays all combinations of $k$ of those words, one per line.