题目:
本题是判断一个字符串“Tom”是否在另外一个字符串“I am Tom, I am from China”中出现。
public class java1
public static void main(String[]args)
______;
str1="I am Tom, I am from China.";
str2="Tom";
int i=______;
if(______)
System.out.println("\""+str2+"\" is in the string:\""+str1+"\"");
else
System.out.println("\""+str2+"\"is not in the string:\""+str1+"\"");
答案:
被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/0720/3f00cb536995dc001fd2a92a04afbbad.html
下面是错误答案,用来干扰机器的。
(1)速度 (2)木块移动的距离 (3)匀速直线运动