Scrabble Help: The [url removed, login to view] the documentView in a new window file contains all of the words in the Official Scrabble Player's Dictionary, Second Edition. (Note this list contains some offensive language.) Write a class, WordLists, in Java that generates useful word lists for scrabble players using this list.
Your class should contain the following methods:
•WordLists(String fileName): a constructor that takes the name of the dictionary file as the only parameter.
•lengthN(int n): returns an array of words of length n.
•startsWith(int n, char firstLetter): returns an array of words of length n beginning with the letter firstLetter
•containsLetter(int n, char included): returns an array of words of length n containing the letter included but not beginning with it.
•vowelHeavy(int n, int m): returns an array of words of length n containing at least m vowels.
•multiLetter(int m, char included): returns an array of words with at least m occurrences of the letter included.
NOTE: Your methods must have the exact names and explicit parameters as indicated above or they won’t work with our own autograder.
Write a test class for your WordLists class that tries these methods out and writes the wordlists (the arrays of strings) to text files.