Question: import java.util.* import java.io.*; 3 public class Lab9 public static void main(String [] args) Scanner input = null; PrintStream output null; try 7 input new

![main(String [] args) Scanner input = null; PrintStream output null; try 7](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66efd05662b34_46966efd055e5b74.jpg)
import java.util.* import java.io.*; 3 public class Lab9 public static void main(String [] args) Scanner input = null; PrintStream output null; try 7 input new Scanner(new File("WordFile.txt")); output = new PrintStream(new File( "Result. txt")); 10 catch (FileNotFoundException e) System.out.println("Error Opening File(s) "e); 12 13 System.exit(1); 15 16 17 18 19 20 // Read input and return a List of String here in main // Proceed with output, sorting, and output of all // sorted versions. Don't forget, each comparator should // be written in their own class as discussed during Lecture. II Write your input and output methods here 22 23
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
