@@ -0,0 +1,249 @@
+// http://codingbat.com/prob/p147448%0A%0Apublic int countHi(String str) %7B%0A  int numberOfHellos = 0;%0A  for (int i = 0; i %3C str.length()-1; ++i) %7B%0A    if (str.substring(i, i+2).equals(%22hi%22)) %7B%0A      numberOfHellos++;%0A    %7D%0A  %7D%0A  return numberOfHellos;%0A%7D%0A

Create countHi.java