Load file in matrix whose elements in the file are divided by commas

0

I can not load the data of a text file in a matrix of type Person [2] [2], which are separated by a comma. I have problems when going through all the spaces in the matrix in the file ... I would greatly appreciate your help ...

    
asked by Claudia 12.10.2017 в 17:05
source

1 answer

0

You must add the code that you have made so far and also what is the error that gives you or fails, however for the little you explain if you want to separate by commas each line of your file you can use the split function

String fooSeparadoPorComas[] = foo.split(",");
    
answered by 12.10.2017 в 18:33