@@ -0,0 +1,584 @@
+// http://codingbat.com/prob/p179479%0A%0Apublic int maxBlock(String str) %7B%0A  if (str.length() %3C 1) %7B%0A    return 0;%0A  %7D%0A  %0A  int maxAdjacentCharSequenceLength = 1;%0A  int adjacentCharSequenceLength = 1;%0A  %0A  for (int i = 0; i %3C str.length()-1; ++i) %7B%0A    if (str.charAt(i) == str.charAt(i+1)) %7B%0A      adjacentCharSequenceLength++;%0A      if (adjacentCharSequenceLength %3E maxAdjacentCharSequenceLength) %7B%0A        maxAdjacentCharSequenceLength = adjacentCharSequenceLength;%0A      %7D%0A    %7D%0A    else %7B%0A      adjacentCharSequenceLength = 1;%0A    %7D%0A  %7D%0A  %0A  return maxAdjacentCharSequenceLength;%0A%7D%0A

Create maxBlock.java