Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Must follow template provided! scrabble help:Question: PROGRAMMING (60 points) S

ID: 3709375 • Letter: M

Question

Must follow template provided! scrabble help:Question: PROGRAMMING (60 points) Scrabble Help: The file dictionary.txt. Preview the document 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 ArrayList of all length n words (Strings) in the dictionary file. startsWith(char firstLetter, int n): returns an ArrayList of words of length n beginning with the letter firstLetter containsLetter(char included, int n): returns an ArrayList of words of length n containing the letter included but not beginning with it. multiLetter(char included, int m): returns an ArrayList of words with at least m occurrences of the letter included. Use the included template for your WordLists.javaPreview the document file. Write your own test class for your WordLists class that tries these methods out and writes the word lists (the ArrayLists of strings) to text files. A Template for the WordLists.java file is in the Assignment. You must create your own test class (separate file with main method) that tests each of your methods and writes the resutls to a text file. In addition to the source files include a text file named readMe.txt with an explanation of how your program works. That is, write in plain English, instructions for using your software, explanations for how and why you chose to design your code the way you did. The readMe.txt file is also an opportunity for you to get partial credit when certain requirements of the assignment are not met. Template: //************************************* // // WordLists.java // // Class to aid with Scrabble //************************************** import java.util.ArrayList; public class WordLists{ //instance variables private String[] words; //array of words taken in private int wordCount; private File name; private Boolean hasLetter; public WordLists(String fileName){ // your code here } public ArrayList lengthN(int n){ // your code here } public ArrayList startsWith(char firstLetter, int n){ // your code here } public ArrayList containsLetter(char included, int n){ // your code here } public ArrayList multiLetter(char included, int m){ // your code here } } // end of class

Explanation / Answer

//Try to use this class definition

//Main.java

//Thanks ..If you need any help please leave a comment...............