keyboard.nextInt(); This is an example of using the scanner class to get input from the user. The nextInt(); function means that you're getting an integer from the user.
var must be defined as an int.
5.2m questions
6.7m answers