题海让大学四年没有难题
白天模式登陆

题目详情

单选题 The following code fragment reads in two numbers: Scanner input = new Scanner(System.in); int i = input.nextInt(); double d = input.nextDouble(); What is the incorrect way to enter these two numbers

A. Enter an integer, a space, a double value, and then the Enter key

B. Enter an integer, two spaces, a double value, and then the Enter key

C. Enter an integer, an Enter key, a double value, and then the Enter key

D. Enter a numeric value with a decimal point, a space, an integer, and then the Enter key

Java程序设计-非计算机课程封面

学科:Java程序设计-非计算机

时间:2023-06-18 05:09:11

Copyright © 2022 津ICP备2021001502号