need help on numberformat exception error
<pre><code>import java.lang.System;
import java.io.*;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class SubMat {
    public static void main(String[] args) throws IOException {

        File file = new File("file1.txt");
        List&lt;double[]&gt; list = new ArrayList&lt;double[]&gt;();
       Scanner scanner = new Scanner(file).useDelimiter("\n");



        while (scanner.hasNext()) {     
            String[] values = scanner.next().trim().split(" "); 
             double[] floats = new double[values.length];
             for (int i = 0; i &lt; values.length; i++) {
                 floats[i] = Double.parseDouble(values[i]);
                 }
                 list.add(floats);
                 } 
                 double[][] values = new double[list.size()][];
                 for (int i = 0; i &lt; list.size(); i++) {
                     values[i] = list.get(i);
                     for (int j = 0; j &lt; values[i].length; j++) {
                         System.out.printf(values[i][j]+"  ");

                         }
                         System.out.println();
                         }


                  int row =values.length;
                 int col=values[0].length;


    }}
</code></pre>
