Insert the missing code in the following code fragment. This fragment is intende
ID: 3830686 • Letter: I
Question
Insert the missing code in the following code fragment. This fragment is intended to read an input file. Explain your answer public static void main (string [] args) throws FileNotFoundException {String inputFileName = "dataIn. txt"; String ouputFileName = "dataOut.txt"; File inputFile = new File(input FileName); Scanner in = _____; ...} Explain this UML diagram Insert the missing code in the following code fragment. This fragment is intended to read an input file dataIn. txt and write to an output file named dataOut.txt. public static void main (String [] args) throws FileNotFoundException. String inputFileName = "dataIn.txt"; String outputFileName = "data out. txt"; File inputFile = new File (input FileName); Scanner in = _____;Explanation / Answer
Question 5
Answer: Scanner in = new Scanner(inputFile);
Question 7
Answer:Scanner in = new Scanner(inputFile);