Java Scanner Read loadNDimDoubleMatrix(Scanner reader, int numberOfDim, Object nmatrix)

Here you can find the source of loadNDimDoubleMatrix(Scanner reader, int numberOfDim, Object nmatrix)

Description

load N Dim Double Matrix

License

Open Source License

Declaration

public static int[] loadNDimDoubleMatrix(Scanner reader, int numberOfDim, Object nmatrix) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.Scanner;

public class Main {
    public static int[] loadNDimDoubleMatrix(Scanner reader, int numberOfDim, Object nmatrix) {
        int[] dim = new int[numberOfDim];
        for (int i = 0; i < dim.length; i++) {
            dim[i] = Integer.parseInt(reader.next());
        }//w w w  .  j a  v a2  s.com
        return dim;
    }
}

Related

  1. loadBooleanArray(BufferedReader in)
  2. loadConf()
  3. loadDoubleArray(Scanner reader)
  4. loadDoubleMatrix(Scanner reader)
  5. loadIntArray(Scanner reader)
  6. loadNDimDoubleMatrixRec(Scanner reader, int[] dim, Object nmatrix)
  7. loadSentencesMap(String path)
  8. loadSolution(File file)
  9. loadTestProgram(final Class resourceClass, final String fileName)