[填空题] 下面程序的功能是统计命令行参数的个数,在下画线处填上适当的代码。 public class Length { public static void main(string args[]) { System.out.println("number of String args:"+args.______); } }
参考答案:
length问题解析:
本题程序中args是一个字符串数组,数组中元素的个数用其属性length表示。
[填空题] 下面程序的功能是统计命令行参数的个数,在下画线处填上适当的代码。 public class Length { public static void main(string args[]) { System.out.println("number of String args:"+args.______); } }
参考答案:
length问题解析:
本题程序中args是一个字符串数组,数组中元素的个数用其属性length表示。