单选题:下列程序的功能是统计字符串中“array”的个数,在程序的空白处应填入的正确选项是(  )。 public class

  • 题目分类:Java
  • 题目类型:单选题
  • 查看权限:VIP
题目内容:
下列程序的功能是统计字符串中“array”的个数,在程序的空白处应填入的正确选项是(  )。
public class FindKeyWords(
public static void main(sring[]args){
sting text=
"An array is a data structur that stores a eollection of"
+"values of the same type.You access each individu-
al value"
+"through an integer index.For example.if a is an
array"
+"of inergers,then all]is the ith integer in the ar-
ray.";
Int arrayCount=0;
Int idex=-l;
Sting arrarStr="array":
Index=text.indexof(arrayStr);
While(index 0){
++arrayCount:
Index+=arrayStr.1ength();
Index=text.indexof(arrayStr,index);
}
System.OUt.println
("the text contains"+arrayCount+"arrays");
}
} A.<
B.=
C.<=
D.>=

参考答案:
答案解析:

新型治疗糖尿病药物——胰岛素增敏剂是

新型治疗糖尿病药物——胰岛素增敏剂是

查看答案

抗铜绿假单胞菌的广谱青霉素是

抗铜绿假单胞菌的广谱青霉素是

查看答案

镇痛作用是吗啡的80~100倍,为一速效、短效、强效的镇痛药是

镇痛作用是吗啡的80~100倍,为一速效、短效、强效的镇痛药是

查看答案

青霉素V钾的化学结构中R基为

青霉素V钾的化学结构中R基为

查看答案

以下关于熔点测定方法的叙述中,正确的是

以下关于熔点测定方法的叙述中,正确的是A.取供试品,直接装入玻璃毛细管中,装管高度为1cm,置传温液中,升温速度为每分钟1.0~1.5℃ B.取经干燥的供试品

查看答案