The method of Scanner class used to accept a double value is:
nextDouble()
Reason — The nextDouble() function reads the next token entered by the user as a double value.