@@ -0,0 +1,178 @@
+public int countHi(String str) %7B%0A  if (str.length() == 1 %7C%7C str.length() == 0)  return 0;%0A  else return (str.substring(0, 2).equals(%22hi%22) ? 1 : 0) + countHi(str.substring(1));%0A%7D%0A

Create countHi.java