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

1 Expert Approved Answer
Step: 1 Unlock

returns the given phrases words in pig latin such ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Building Java Programs A Back to Basics Approach Questions!