完善程序,从键盘获取浮点数成绩,正确选项是()。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()