Mega Code Archive
Replaces all occourances of given String with new one and returns new String object
public class Main {
public static void main(String args[]) {
String str = "This is a test.";
System.out.println(str.replaceAll("is", "are"));
}
}
//Thare are a test.