12. String csv = “Sue,5,true,3”; 13. Scanner scanner = new Scanner( csv); 14. scanner.useDelimiter(”,”); 15. int age = scanner.nextInt(); What is the result?()
A. Compilation fails.
B. After line 15, the value of age is 5.
C. After line 15, the value of age is 3.
D. An exception is thrown at runtime.
查看答案
该试题由用户130****92提供
查看答案人数:32128
如遇到问题请
联系客服
正确答案
该试题由用户130****92提供
查看答案人数:32129
如遇到问题请联系客服