There are a whole bunch of errors, but this should get you started.
Outside of any method, put
static int[][] nums = null;
static int[][] sample = null;
And then inside scanInfo
, change the lines to
nums = new int[rows][columns];
sample = nums;
Also, call scanInfo()
from main()
.