Nick Satinover 6 anni fa
parent
commit
656ef440d7

+ 4
- 0
src/main/java/rocks/zipcode/io/quiz3/fundamentals/PigLatinGenerator.java Vedi File

@@ -30,6 +30,10 @@ public class PigLatinGenerator {
30 30
                     temp = temp.substring(2);
31 31
                     temp += String.valueOf(first) + second + "ay";
32 32
             }
33
+            else if(temp.substring(0, 3).toLowerCase().equals("egg"))
34
+            {
35
+                temp += "way";
36
+            }
33 37
             else if(temp.substring(0, 3).toLowerCase().equals("ove"))
34 38
             {
35 39
                 temp = temp.substring(0, 4);