I have gone through loads of these questions but still cant seem to figure it out. I have a text file split into rows. Each row consists of 5 pieces of data separated by a \
I assume you understand the basics of reading through a file. So let's start at where you have your String s equal to one full row:
String s = "John,22,1953,Japan,Green";
You can call the split() function to return an array from s subdivided by some expression (in this case, a comma) like so:
String[] row = s.split(","); //Returns a new String array {John,22,1953,Japan,Green}
Then you have row[0] = "John", row[1] = 22, and so on. You can do whatever you would like with these arrays, including store them in a multidimensional array if that's what you want to do.
String[][] xyz = new String[numRows][5];
xyz[0] = row;
System.out.println(xyz[0][0]); //prints "John"
Hopefully that's clear and I understood what you were trying to do correctly.