Question: X 1 2 8 1 : Replace Spaces Write a method replaceSpaceUnderscore that replaces all spaces with _ ( underscores ) in the String sentence.

X1281: Replace Spaces
Write a method replaceSpaceUnderscore that replaces all spaces with _(underscores) in the String sentence.
Examples:
replaceSpaceUnderscore("to live and to love")"to_live_and_to_love"
replaceSpaceUnderscore("Don't Have a Cow, Man") "Don't_Have_a_Cow,_Man"
 X1281: Replace Spaces Write a method replaceSpaceUnderscore that replaces all spaces

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!