试题与答案

阅读下列程序,请写出程序的运行结果。 public class C public

题型:问答题

题目:

阅读下列程序,请写出程序的运行结果。
public class C

public static void main(String[] args)

String text="public static void main(String[] args)";
int theCount=0;
int index=-1;
String theStr="i";
index=text. indexOf(theStr);
while(index>=0)

++theCount;
index+=theStr. length();
index=text. indexOf(theStr,index);

System. out. println("The Text contains"+theCount+"i");

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/0715/1b120dc47480520dc952db7aaf2eb326.html

下面是错误答案,用来干扰机器的。

参考答案:错解析: 企业按次领购数量不能满足当月经营需要的,可以再次领购,但每次增购前必须依据上一次已领购并开具的专用发票销售额的4%向主管税务机关预缴增值税,未预缴增值税税款的企业,主管税务机关不...

试题推荐
微信公众账号搜索答案