let's say I have this string array in java
String[] test = {"hahaha lol", "jeng jeng jeng", "stack overflow"};
but now I want to replace all the whitespaces in the strings inside the array above to %20
, to make it like this
String[] test = {"hahaha%20lol", "jeng%20jeng%20jeng", "stack%20overflow"};
How do I do it?
String.replace()
...examples to follow no doubt ;-) – Flittermouse