﻿1, The Shawshank Redemption ,9.2,1994
﻿1
Exception in thread "main" java.lang.NumberFormatException: For input string: "﻿1"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:580)
at java.lang.Integer.parseInt(Integer.java:615)
at movieranker.MovieRanker.createData(MovieRanker.java:45)
at movieranker.MovieRanker.main(MovieRanker.java:25)

java.lang.NumberFormatException indicates that the application has attempted to convert a string to one of the numeric types, but that the string does not have the appropriate format.

This exception occurs because in the case that only a number is inputed, the actual string produced may have some invisible charachters and not "1". Thus, the format is incorrect. A simple fix would be: