Your task is to read a file containing lines of text, and to write another file that contains these lines, where all vowels (both uppercase and lowercase) are replaced by underscores. For example, if your input file just contains the lines:

Mary had a little lamb, 
its fleece was white as snow.
    

then your output file should contain the lines:

M_ry h_d _ l_ttl_ l_mb,
_ts fl__c_ w_s wh_t_ _s sn_w.
    

Complete the following class:

Complete the following file:

ReplaceVowels.java

import java.io.FileReader; import java.io.FileNotFoundException; import java.io.PrintWriter; import java.util.Scanner; /** This class reads lines from an input file, replaces all vowels (a, e, i, o, and u) with underscores, and prints out the new lines to an output file. Remember to replace both uppercase and lowercase vowels. */ public class ReplaceVowels { public static void main(String[] args) throws FileNotFoundException { // Setup the input and output file names String inputFileName = "mary.txt"; String outputFileName = "output.txt"; // Construct the Scanner and PrintWriter objects // your work here // For each line read, replace vowels by underscores // and print out altered line // your work here // Close input & output files // your work here } }