How can I use java.ulti.Scanner to scan a file and store it in a 2D array form?
the file content is like:
100 200 300 400
200 300 400 500
300 400 500 600
400 500 600 700
I want to save the above table which is in a txt file (use scanner) into an 2D-array and it may not be always 4X4 table. it may change to 5x5 6x6 or even larger.
Thanks!