So I have a text file like this:
1 0 1 1 1 1 0 1
1 0 1 1 1 1 0 1
1 0 1 1 1 1 0 1
1 0 1 1 1 1 0 1
1 0 1 1 1 1 0 1
1 0 1 1 1 1 0 1
1 0 1 1 1 1 0 1
1 0 1 1 1 1 0 1
And I want to get the following from this file:
The number of lines
A double array of all values (i.e. In this file, tiles[2][2] = 0)
So should I use scanner, or what? I tried scanner, but cannot figure out how to get this info.