let\'s say I have this string array in java
String[] test = {"hahaha lol", "jeng jeng jeng", &quo
Try using String#relaceAll(regex,replacement); untested, but this should work:
for (int i=0; i<test.length; i++) { test[i] = test[i].replaceAll(" ", "%20"); }