Menu ▾ ▴

#1 Program Crash

v1.0_(example)
open
nobody
5
2010-10-21
2010-10-21
Anthony Ho
No

When entering a 4 letter input, the program crashes with this error:
Exception in thread "main" java.lang.NumberFormatException: For input string: "b"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:449)
at java.lang.Integer.parseInt(Integer.java:499)
at com.nubutech.chess.Run.getMoveFromUser(Run.java:117)
at com.nubutech.chess.Run.play(Run.java:44)
at com.nubutech.chess.Run.main(Run.java:15)

Discussion


Log in to post a comment.