Code example for Scanner

Methods: hasNextDouble, nextDouble, useLocale