0

I would like to read a file with the following format using a Scanner.

integer,integer

integer,integer

...

First I added, scanner.useDelimiter(",").

Then I used, scanner.nextInt() twice for the two integers and used scanner.nextLine() to get the scanner to the next row.

The problem occurs after this since it excpects the delimiter "," but the scanner is positioned at an integer.

Any suggestions?

0 Answers0