No matter what I try, 2nd condition won`t pass. Tried: No try, catch blocks, with throws Exception in main, as well as throws IOException With try, catch and IllegalArgument, as well as NumberFormat, and then rethrowing it in catch Nothing works.