当前位置:百科知识 > 计算机应用试题

问题描述:

[单选] 下列语句能给数组赋值而不使用for循环的是
A.myArray{[1]="One";[2]="Two";[3]="Three";} B.String s[5]=new String[]{"Zero", "One", "Two", "There", "Four"}; C.String s[]=new String[]{"Zero", "One", "Two", "There", "Four"}; D.String s[]=new String[]=|"Zero", "One", "Two", "There", "Four"};
参考答案:查看
答案解析:
☆收藏

随机题目