Problem - input in two-dimensional array

Hi

I need to make input from a file in two-dimensional array. The file is like this(Joe Lapland 9.8, 9.2, 9.3, 9.4, 9.7, 9.5, 9.1, 9.9)

I know that a have to do two arrays for it.

so far I did this:

package chapter09;

import java.io.*;

import java.util.*;

public class CH {

Scanner myScanner = new Scanner (("src\\CHO9EX04data.txt"));

String inp = myScanner.nextLine();

Scanner a2 = new Scanner (inp);

String names [][] = new String [25][2];

int ncr;

int lnr;{

while (myScanner.hasNext());{

names [0][lnr] = a2.next();

names [1][lnr] = a2.next();

names [2][lnr] = a2.next();

names [3][lnr] = a2.next();

names [4][lnr] = a2.next();

names [5][lnr] = a2.next();

names [6][lnr] = a2.next();

names [7][lnr] = a2.next();

names [8][lnr] = a2.next();

names [9][lnr] = a2.next();

names [10][lnr] = a2.next();

names [11][lnr] = a2.next();

names [12][lnr] = a2.next();

names [13][lnr] = a2.next();

names [14][lnr] = a2.next();

names [15][lnr] = a2.next();

names [16][lnr] = a2.next();

names [17][lnr] = a2.next();

names [18][lnr] = a2.next();

names [19][lnr] = a2.next();

names [20][lnr] = a2.next();

names [21][lnr] = a2.next();

names [22][lnr] = a2.next();

names [23][lnr] = a2.next();

names [24][lnr] = a2.next();

names [ncr][0] = a2.next();

names [ncr][1]= a2.next();

names [ncr][2]= a2.next();

names [ncr][3]= a2.next();

names [ncr][4]= a2.next();

names [ncr][5]= a2.next();

names [ncr][6]= a2.next();

names [ncr][7]= a2.next();

names [ncr][8]= a2.next();

names [ncr][9]= a2.next();

names [ncr][10]= a2.next();

names [ncr][11]= a2.next();

names [ncr][12]= a2.next();

names [ncr][13]= a2.next();

names [ncr][14]= a2.next();

names [ncr][15]= a2.next();

names [ncr][16]= a2.next();

names [ncr][17]= a2.next();

names [ncr][18]= a2.next();

names [ncr][19]= a2.next();

names [ncr][20]= a2.next();

names [ncr][21]= a2.next();

names [ncr][22]= a2.next();

names [ncr][23]= a2.next();

names [ncr][24]= a2.next();

}

}

public static void main (String[] args){

printName(names);

}

public static void printName(String[][] names) {

int row, col;

for (row = 0; row < names.length; row++)

{

for (col = 0; col < names[row].length; col++)

System.out.printf("%7d", names[row][col]);

System.out.println();

}

}

}

Can you tell me where is my mistakes and what I'm doing wrong. I know that I have to make one more array for the numbers, but I'm trying to set up first this with the names. I need to read 25 persons.

Thanks