title: Integer inputs using nextInt()
body: <p>So, I'm using nextInt() to get integer inputs from the user in the command line. However, my question is; when the user does not enter an integer, i.e. just presses enter without entering anything, the nextInt() does not terminate but continues to prompt the user until an integer is entered by the user. Is it possible to take that first "no input" as an input and then return an error message saying that no integer was inputted? 
  Thanks in advance!</p>