kllr7
- 1
- 0
i need to know what the error messege below means and how to fix it.
Exception in thread "main" java.lang.NumberFormatException: For input string: "z"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:447)
at java.lang.Integer.parseInt(Integer.java:497)
at chap56.main(chap56.java:23)
it came from the program below which was created and compiled with jGrasp.
it should read any number of integers from a file and output the sum of the evens and the odds to a file. sorry about the attachment i don't know how to put code in the body.
Exception in thread "main" java.lang.NumberFormatException: For input string: "z"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:447)
at java.lang.Integer.parseInt(Integer.java:497)
at chap56.main(chap56.java:23)
it came from the program below which was created and compiled with jGrasp.
it should read any number of integers from a file and output the sum of the evens and the odds to a file. sorry about the attachment i don't know how to put code in the body.
Attachments
Last edited: