Question: X 1 2 8 1 : Replace Spaces Write a method replaceSpaceUnderscore that replaces all spaces with _ ( underscores ) in the String sentence.
X: Replace Spaces
Write a method replaceSpaceUnderscore that replaces all spaces with underscores in the String sentence.
Examples:
replaceSpaceUnderscoreto live and to love"toliveandtolove"
replaceSpaceUnderscoreDont Have a Cow, Man" "Don'tHaveaCow,Man"
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
