Code example for Scanner

Methods: hasNextInt, hasNextShort, nextInt, nextShort