单选题
下列程序的功能是统计字符串中"array"的个数,在程序的空白处应填入的正确选项是:
下列程序的功能是统计字符串中"array"的个数,在程序的空白处应填入的正确选项是:
public class FindKeyWords{
public static void main(sring[] args){
String text=
" An array is a data structur that stores a collection of"
+ "values of the same type . You access each individual value"
+ "through an integer index . For example,if a is an array"
+ "of inergers, then a[i] is the ith integer in the array.";
int arrayCount =0;
int idex = -1;
String arrarStr ="array";
index = text.indexof(arrayStr);
while(index ______ 0) {
++arrayCount;
index += arrayStr.length();
index = text.indexof(arrayStr,index);
}
System.out.println("the text contains" + arrayCount + "arrays");
}
}
A
<
B
=
C
<=
D
>=
答案解析
正确答案:D
题目纠错
相关题目
单选题
IE软件是( )。
单选题
IE浏览器的收藏夹是一个专用文件夹,其中收藏的是( )。
单选题
I/O接口位于( )。
单选题
http是一种( )
单选题
Http://www.panda.com.cn代表国家区域名的是( )。
单选题
HTML的中文名是( )。
单选题
Hacker是指那些私闯非公开的机构网络进行破坏的人,它的中文俗称是( )。
单选题
Excel中使用公式,当多个运算符出现在公式中时,由高到低各运算符的优先级是( )
单选题
Excel中可以创建嵌入式图表,它和创建图表的数据源放置在( )工作表中。
单选题
Excel中的“引用”可以是单元格或单元格区域,引用所代表的内容是( )
