Modify the Total program so that it writes the values in two columns, like this: Previous answer Chegg provided displayed the correct output for in.txt but now, how do I make the empty blank as shown? Previous solution provided by Chegg: import java.io.File; import java.io.FileNotFoundException; import java.io.PrintWriter; import java.util.Scanner; public class Total { public static void main(String[] args) throws FileNotFoundException { Scanner console = new Scanner(System.in); System.out.print("Input file: "); String inputFileName = console.next(); String outputFileName = "out.txt"; File inputFile = new File(inputFileName); Scanner in = new Scanner(inputFile); PrintWriter out = new PrintWriter(outputFileName); double total = 0; while (in.hasNext()) { double value1 = in.hasNextDouble() ? in.nextDouble() : 0; double value2 = in.hasNextDouble() ? in.nextDouble() : 0; out.printf("%8.2f %7.2f%n", value1, value2); total += (value1 + value2); } out.printf("Total: %10.2f%n", total); in.close(); out.close(); } } Your file content Your program produced no output Expected file content 1: Compare output Output differs. See highlights below. Special character legend 2: Compare output A Input in2.txt.