Question: Write a method pigLatin that uses stream operations to convert a String parameter into its Pig Latin form. For this problem well use a simple
Write a method pigLatin that uses stream operations to convert a String parameter into its “Pig Latin” form. For this problem we’ll use a simple definition of Pig Latin where the first letter should be moved to the end of the word and followed by “ay.” For example, if the string passed is "go seattle mariners", return "o-gay eattle-say ariners-may".
Step by Step Solution
3.51 Rating (174 Votes )
There are 3 Steps involved in it
returns the given phrases words in pig latin such ... View full answer
Get step-by-step solutions from verified subject matter experts
