Question: In Java I want to read a file like this: 6 6 y n o d e j h s e y p k l
In Java I want to read a file like this:
6 6 y n o d e j h s e y p k l p h b w a l o b w x z w o b a a i p l y y c g
The first two lines in the file represents the rows and columns, and using these numbers I want to store the rest of the data in a list of lists or array of arrays to represent the grid. For example the first line would be ['y, 'n', 'o', 'd', 'e', 'j']
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
