这段代码什么意思呢?
String info = "abcabcdaabdcbabdacdabc";
String searchString = "ab";
for(int i = 0; i < info.length(); i++ ){
int pos = info.indexOf(searchString,i);
if(pos == -1) break;
System.out.println("index:"+i+",string position:"+pos);
i = pos+searchString.length()-1;
}
不懂for循环里面的什么意思?希望有人帮忙解答一下,多谢