小腿红色斑块发硬:java问题

来源:百度文库 编辑:神马品牌网 时间:2024/04/28 13:04:07
str2 = "One Two Three One";
idx = str2.indexOf("One");
System.out.println("Index of first occurrence of One: " + idx);
idx = str2.lastIndexOf("One");
System.out.println("Index of last occurrence of One: " + idx);

str2.indexOf("One");
str2.lastIndexOf("One");
这二句是什么意思,为什么输出结果是0和14,请帮我每 行解释一下