[填空题] 下面程序的功能是统计命令行参数的个数,在下画线处填上适当的代码。 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表示。
上一篇 [填空题] 在窗体上画一个文本框、一个标签和一个命令按钮,其名称分别为Text1、Label1和Command1,然后编写如下两个事件过程: Private Sub Command1
下一篇 [单项选择题] 下列Java布局管理器中,简单地将组件由左到右排列,排满一行,自动移到下一行的布局管理器是( )。