Question: write a java method: 1) If 'r' is at the end of a word and is preceded by ee or 'i' replace 'r' with yah
write a java method:
1) If 'r' is at the end of a word and is preceded by "ee" or 'i' replace 'r' with "yah" instead of 'h'. For example, "deer" becomes "deeyah" instead of "deeh", but "veneers" still becomes "veneehs".
2.If 'r' is at the end of a word and is preceded by "oo", replace 'r' with "wah". For example, "door" becomes "doowah" instead of "dooh" (but "doors" still becomes "doohs").
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
