Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_step_2

Step: 3

blur-text-image_step3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

2. How will the team select a leader?

Answered: 1 week ago