单选题
下列程序的功能是统计字符串中"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
题目纠错
信息技术知识大赛
相关题目
单选题
常用的关系运算是关系代数和( )。
单选题
在关系数据模型中把( )称为关系模式。
单选题
在关系数据模型中,通常可以把( )称为属性,其值称为属性值。
单选题
数据库管理员(DBA)的主要工作包括数据库设计、数据库维护和( )。
单选题
数据管理方法主要有( )。
单选题
数据库管理系统中用于定义和描述数据库逻辑结构的语言称为( )。
单选题
数据库管理系统的工作不包括( )。
单选题
为完成数据库管理系统的功能,数据库管理系统提供相应的数据语言。数据控制语言是其中之一,下列所述不是数据控制语言的功能的是( )。
单选题
数据库管理系统(DBMS)是( ).
单选题
在数据库中,产生数据不一致的根本原因是( )。
