Welcome to the Ranch.
The error message tells you that class Scanner does not have a variable with the name 'hasNextDouble'. If you look in the
API documentation, you'll see that indeed does not have a
variable named 'hasNextDouble'. However, it does have a
method named 'hasNextDouble'. Probably that's what you wanted to call here: