Question: Need help with just the first two sections, the file we use that has the words on it is called biglist.txt, the user inputs 7
8 import java.io.* 9 import java.util.*; 0 public class Scrabble /* Counts the number of lines for the given file 5 public static int countLines(String filename) int count = 0; // to be completed return count; * Read all the words in the given file and return them * in a String array Uses countLines to figure out the how big the array * of words has to be 8 public static Stringt) readwordList(String filename String words[] { "ab", "abb", "abe", "bee" , "car" }; // to be completedalso need to change how words[] is declared return words
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
