hmm... that's weird. The next() method is taking in multiple numbers at a time. What you could do is just use the Scanner.nextInt() method and skip the trouble of having to use the Integer wrapper...