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

jjJAVA Given a string str, you are to produce (and return) aJAVA

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

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!