Check out example codes for "input double java". It will help you in understanding the concepts better.

Code Example 1

import java.util.Scanner;

Scanner input = new Scanner(System.in);
double choice = input.nextDouble();

Learn ReactJs, React Native from akashmittal.com