0
/ 1
Description
Given a string, compute recursively a new string where all spaces in the original one are replaced by an underscore (_).
So...
Given a string, compute recursively a new string where all spaces in the original one are replaced by an underscore (_).
So given "hello world", return "hello_world".
String class:
indexOf, lastIndexOf, contains, endsWith, startsWith,
matches, replace, nor replaceAll.Examples:
replaceWUnderscore("hello world") -> "hello_world"
replaceWUnderscore("buenos dias") -> "buenos_dias"
Your feedback will appear here when you check your answer.