Java - Strings and String Handling
You want to replace all spaces in a string with underscores and keep the original string unchanged. Which approach is correct?
replace() to a new string variable to keep original unchanged.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions