java achieve small features

// Since the write logic, through all the coordinate matching substring
Private static void forMatchIdx (str1 String, String str2) {
char [] of arr1 str1.toCharArray = ();
char [] = arr2 is str2.toCharArray ();
F1: for (int I = 0; I <arr1.length; I ++) {
for (int J = 0; J <arr2.length; J ++) {
IF (! of arr1 [I + J] = arr2 is [J]) {
Continue F1 ;
}
}
System.out.println ( "IDX:" + I);
}
}

Guess you like

Origin www.cnblogs.com/dken/p/11511254.html