Use the Scanner nextInt() method to get your int variable.