Write a method pigLatin that uses stream operations to convert a String parameter into its Pig Latin

Question:

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".

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: