i have a text file contains this:
1 1 0 0
1 2 0 0
1 0 1 0
1 0 2 0
1 0 0 1
1 0 0 2
2 1 0 0
2 2 0 0
2 0 1 0
2 0 2 0
2 0 0 1
2 0 0 2
then, i put the contents in an arraylist. the result will be same as in file. next, i want to process the data 1 by 1 and put each row of the content in an array[][] where the the data will be seperated by row. the result will be like this:
output[0][]={1 1 0 0}
output[1][]={1 2 0 0}
output[2][]={1 0 1 0}
output[3][]={1 0 2 0}
....
....
....
question, how can i take the string in arraylist to become a separated data? i code in java
thanks