Say for example the file I'll be reading off of will be:
5, 6
2, 1
3, 5
7, 9
1, 0
0, 0
I first would like to store the integer 5 into variable 'a' and then integer 6 into variable 'b', and then I would like to use them in a method. I then would like to store the second line, 2 into variable 'a' and 1 into variable 'b'. So basically reuse just two, 'a' and 'b', to use them temporarily in a method and store the next line of input into those variables, and so on. In Java, how can I go about doing so with file reading?