Answered step by step
Verified Expert Solution
Question
1 Approved Answer
AP COMP SCI A: Write a method called FunnyString that will take a string as a parameter. If the word funny is in the string
AP COMP SCI A:
Write a method called FunnyString that will take a string as a parameter. If the word funny is in the string it will replace it with haha. If the word isn't in the string it will replace all vowels (capital and lower case) with a * and capitalize all letters in the sentence. Note it should only do this if the word is NOT found in the sentence. Either way it will return the modified sentence. Note you do not have to write main or anything else for this program other than the method
Java
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started