Line №

Report a typo

Suppose you have a program that throws the following exception:

Exception in thread "main" java.lang.NumberFormatException: For input string: "121a"
  at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
  at java.base/java.lang.Integer.parseInt(Integer.java:652)
  at java.base/java.lang.Integer.parseInt(Integer.java:770)
  at Program.main(Program.java:112)

Which line in your code produces the exception? Enter the number of the line.

Enter a number
___

Create a free account to access the full topic