Question: Java Programming: I need to write a program to store the followinng file info in a 2D matrix using Scanner.in. The file will have S
Java Programming: I need to write a program to store the followinng file info in a 2D matrix using Scanner.in. The file will have S as matrix[0][0] and E as matrix[m -1][n -1]. The S and E (meaning Start and End can be stored as 0). The first two numbers of the file will be m and n (m x n). Example of the file input:
2 3
S 2 3
1 4 E
So the matrix should store the values:
| 0 | 2 | 3 |
| 1 | 4 | 0 |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
