title: How to check if the input is an integer?
body: <p>I am taking input as integer using Scanner class. like this:<code>in.nextInt();</code>
  I need to prompt "wrong input" if user has entered any floating point number or character or string. 
  How can i accomplish this ?</p>