function for reading double in scanner java code example
Example: input double java
import java.util.Scanner;
Scanner input = new Scanner(System.in);
double choice = input.nextDouble();
import java.util.Scanner;
Scanner input = new Scanner(System.in);
double choice = input.nextDouble();