scanner class double code example
Example 1: input double java
import java.util.Scanner;
Scanner input = new Scanner(System.in);
double choice = input.nextDouble();
Example 2: read double java
import java.util.Scanner;
Scanner input = new Scanner(System.in);
double choice = input.nextDouble();