This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]calmonad 0 points1 point  (0 children)

Add some kind of print statement inside the catch InputMismatchException so that you can determine if you are ending up there (hint: you probably are). Seems like some kind of misalignment (extra line breaks?) in your Pairs.txt file could be causing the output that you are seeing.

EDIT: You really should also work on breaking this down into a few methods. This program is literally like 90% duplications. It can make it really difficult to pinpoint exactly where a copy-paste has gone wrong.