@@ -0,0 +1,316 @@
+// http://codingbat.com/prob/p198640%0A%0Apublic int stringMatch(String a, String b) %7B%0A  int numberOfValidPositions = 0;%0A  for (int i = 0; i %3C a.length()-1 && i %3C b.length()-1; ++i) %7B%0A    if (a.substring(i, i+2).equals(b.substring(i, i+2))) %7B%0A      numberOfValidPositions++;%0A    %7D%0A  %7D%0A  return numberOfValidPositions;%0A%7D%0A

Create stringMatch.java