i’m getting error cannot find symbol in netbeans while using the below code for replacing the string with string.
public String urlEncode(String msg) {
if (msg != null) {
msg=msg.replaceAll(" ","%20");
}
return msg;
}
Need help !!
use the following code