In my application i want to replace space with %20 in my string.I tried in this way,
String flag1="http://74.208.194.142/admin/upload_image/1342594079_images (2).jpg";
flag1.replaceAll("", "%20");
But it is not working please help me.I am getting null pointer exception.