- yes or no?
- Yes or No!
- No E Allowed
- PigLatin I
- Pig Latin II
- Pig Latin III
- Pig Latin Finale
Java String Resources:
Pig Latin III
You finished handling vowel-words, so now its time to update the consonant-words. In Pig Latin, all the consonants until the first vowel should be moved to the end of the word. So while "laptop" will still be "aptoplay", "string" should become "ingStray".
Change your code so the first "consonant cluster" is moved to the end of the word and "ay" is added after. A word that begin with a vowel or a single consonant should return the same value as before.
Please sign in or sign up to submit answers.
Alternatively, you can try out Learneroo before signing up.
thalesJul 17, 3:33 PM
This was really hard but here is a solution.
StanixlavOct 27, 3:59 PM
Honestly, I have been trying to code something cleaner than thales since I started on Learneroo months ago. Not that it's about competition, but I think I finally may have snuck one past her/him.
LearnerooOct 27, 4:34 PM
Nice :) See also the featured answer I just posted.
BolkeJul 13, 6:59 PM
Is it a secret where the featured answer is?
BolkeJul 13, 7:00 PM
Btw nice work, Stanixlav. I couldn't get it done.