📅  最后修改于: 2022-03-11 14:52:36.733000             🧑  作者: Mango
import java.util.*;
public class ScannerNextDoubleExample4 {
public static void main(String args[]){
double value;
Scanner scan = new Scanner(System.in);
System.out.print("Enter the numeric value : ");
value = scan.nextDouble();
System.out.println("Double value : " + value +" \nTwice value : " + 2.0*value );