單項(xiàng)選擇題

11. public class Counter { 
12. public static void main(String[] args) { 
13. int numArgs = /* insert code here */; 
14. } 
15. } 
and the command line: java Counter one fred 42 Which code, inserted at line 13, captures the number of arguments passed into the program?() 

A. args.count
B. args.length
C. args.count()
D. args.length()
E. args.getLength()

題目列表

你可能感興趣的試題

微信掃碼免費(fèi)搜題