Code example for Scanner

Methods: hasNextInt, nextInt, useLocale