@@ -0,0 +1,284 @@
+public boolean gHappy(String str) %7B%0A  boolean isHappy = true;%0A  str = str + ' ';%0A  for (int i=0; i%3Cstr.length()-1; i++) %7B%0A    if (str.charAt(i) == 'g') %7B%0A      if (str.charAt(i+1) != 'g') isHappy = false;%0A      else %7B while (str.charAt(i) == 'g') i++; %7D%0A    %7D%0A  %7D%0A  return isHappy;%0A%7D%0A

Create gHappy.java