Finding Permutations of Words

Write a class named PermutationsFinder 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 permutations of $k$ of those words, one per line.