java.util.InputMismatchException in java
Referring to this line of code
marks.add(new StudentMarks(scan.next(), scan.next(), scan.nextDouble(),
scan.nextDouble(), scan.nextDouble(), scan.nextDouble()));
I'm not sure how to fix it, it is while looping and reading from a text
file with 2 strings then 4 doubles separated by commas, and there is 10
lines to loop through
any help would be much appreciated.
No comments:
Post a Comment