The issue is that nextInt() doesn't consume the end of line characters after you enter in a number and press enter. The solution is to add in a dummy nextLine() call that will consume this character.