Question: j JAVA Given a string str, you are to produce (and return) a string, built from str, such that all vowels are replaced by a
j
JAVA
Given a string str, you are to produce (and return) a string, built from str, such that all vowels are replaced by a character ***. The method you will design to solve this problem is named stars4Vowels (see method stub in the Week2Review.java file in Mimi). For instance, Given string 'aksde" stars4Vowels will return string "*ksd*" Given string 'Elementary, stars4Vowels will return string **I*m*at*r* Given string asigur", stars4Vowels will return string Bonus (3 pts): Produce an alternative implementation. You method should be named stars4VowelsAlt
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
