关于#java#的问题,请各位专家解答!

下面的for循环将执行多少次?
for (int count=5; count<=3; count++)
System.out.println("Java is great!!!");
A.3 B.0 C.15 D.5

执行以下代码后,str的值是多少?)
String str;
String my Text ="the dog and the cat and the fish";
str =myText.substring(12,19);
A.the dog B.the fish C.the cat D.and

第一题 B 0次 ,count<=3不满足一次都不执行
第二次 C the cat substring 第13位开始截取,到19位结束

for (int count=5; count<=3; count++)
System.out.println("Java is great!!!");
A.3 B.0 C.15 D.5

选B

String str;
String my Text ="the dog and the cat and the fish";
str =myText.substring(12,19);

选择c

不知道你这个问题是否已经解决, 如果还没有解决的话:

如果你已经解决了该问题, 非常希望你能够分享一下解决方案, 写成博客, 将相关链接放在评论区, 以帮助更多的人 ^-^