I have a file with ints like this.
1 2
3 4
5 6
How to read first int from file?
How to read second int from file?
How to skip first line and but rest in 2d array?
This is what I have so far. I am not sure how to read 2nd int from file and to put rest in 2d array.
Scanner f = new Scanner(new File(fName));
//read first number
int num1 = f.nextInt();
//skip first line and put rest in 2d array
while(f.hasNextInt()){
a[i++] = f.nextInt();
}