Question: Hello, Need help this this assignment, this is all I have so far. 1 package myWord; ???mport java . 10. File:L 12 13 public class

Hello, Need help this this assignment, this is all I have so far.

Hello, Need help this this assignment, this is all I have sofar. 1 package myWord; ???mport java . 10. File:L 12 13 publicclass Word211 extends myWordGUI 14 15 public void readFile(String fileName) throws FileNotFoundException{

1 package myWord; ???mport java . 10. File:L 12 13 public class Word211 extends myWordGUI 14 15 public void readFile(String fileName) throws FileNotFoundException{ 16 17 18 19 20 21 public static ArrayList Words = new ArrayList0; File file-new File C"FRUIT. TXT"); Scanner inputFile = new Scanner (file); while (inputFile.hasNextLineO) i String ninputFile.nextO; Words.add(n); 23 246 25 26 27 28 29 30 31 32 public HashMap getNextWord) Random rnd -new Random; int index- rnd.nextInt (Words.size)); String answer = Words.get(index); List qTemp Arrays.asList(answer.split("")); Collections. shuffle(qTemp);; String question"; for (int i-0; i hm = new HashMap Words = new ArrayList0; File file-new File C"FRUIT. TXT"); Scanner inputFile = new Scanner (file); while (inputFile.hasNextLineO) i String ninputFile.nextO; Words.add(n); 23 246 25 26 27 28 29 30 31 32 public HashMap getNextWord) Random rnd -new Random; int index- rnd.nextInt (Words.size)); String answer = Words.get(index); List qTemp Arrays.asList(answer.split("")); Collections. shuffle(qTemp);; String question"; for (int i-0; i hm = new HashMap

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!