@@ -0,0 +1,447 @@
+// http://codingbat.com/prob/p198664%0A%0Apublic boolean gHappy(String str) %7B%0A  boolean gHappy = true;%0A  %0A  for (int i = 0; i %3C str.length(); ++i) %7B%0A    if (str.charAt(i) == 'g') %7B%0A      if (i %3E 0 && str.charAt(i-1) == 'g') %7B%0A        gHappy = true;%0A      %7D%0A      else if (i %3C str.length()-1 && str.charAt(i+1) == 'g') %7B%0A        gHappy = true;%0A      %7D%0A      else %7B%0A        gHappy = false;%0A        return gHappy;%0A      %7D%0A    %7D%0A  %7D%0A  %0A  return gHappy;%0A%7D%0A

Create gHappy.java