完善程序,从键盘获取浮点数成绩,正确选项是()。publicclassInputScore{publicstaticvoidmain(String[]args){Scannerscan=newScanner(System.in);doublescore=scan.__________;System.out.println(score);}}


完善程序,从键盘获取浮点数成绩,正确选项是()。publicclassInputScore{publicstaticvoidmain(String[]args){Scannerscan=newScanner(System.in);doublescore=scan.__________;System.out.println(score);}}

A.next()

B.nextLine()

C.nextDouble()

D.nextInt()

正确答案:nextDouble()


Tag:Java程序设计 选项 键盘 时间:2022-01-29 20:22:55