Scanner scan = new Scanner(System.in);
double cost = scan.nextDouble();
System.out.println(cost);
所以我尝试编写 7.6,它在 main.js 中抛出异常。但是当我写 7,6 时没问题,它会打印 7.6
我使用 eclipse 作为我的 IDE
Scanner scan = new Scanner(System.in);
double cost = scan.nextDouble();
System.out.println(cost);
所以我尝试编写 7.6,它在 main.js 中抛出异常。但是当我写 7,6 时没问题,它会打印 7.6
我使用 eclipse 作为我的 IDE