logo CodeStepByStep logo

pigLatin2

Language/Type: Java file input
Related Links:
Author: Nick Troccoli (on 2017/04/25)

Write a method named pigLatin2 that is a modified version of the preceding pigLatin problem. In this modified version, if the word starts with constants, move all constants up to the first vowel (not just the first consonant) to the end, and append "ay". For example, the word "scram" would become "amscray".

Method: Write a Java method as described, not a complete program or class.

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.