<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">import java.util.*;
import java.io.*;

public class JaggedData {
  public static void main( String[] args )
      throws FileNotFoundException {

    Scanner fileScanner = new Scanner( new File( args[ 0 ] ) );
    int nRows = fileScanner.nextInt();
    double[][] data = new double[ nRows ][];
    for ( int i = 0; i &lt; nRows; i ++ ) {
      int nCols = fileScanner.nextInt();
      data[ i ] = new double[ nCols ];
      for ( int j = 0; j &lt; nCols; j ++ ) {
        data[ i ][ j ] = fileScanner.nextDouble();
      }
    }

    System.out.println( "Data has been read" );
    for ( int i = 0; i &lt; nRows; i ++ ) {
      for ( int j = 0; j &lt; data[ i ].length; j ++ ) {
        System.out.printf( "%.2f", data[ i ][ j ] );
        if ( j &lt; data[ i ].length - 1 ) {
          System.out.print( " " );
        }
      }
      System.out.println();
    }
  }
}
</pre></body></html>