class Example
{
{
String str
= "Here it is: {Name} And again: {Name}"; System.
out.
println("Before: " + str
); str = str.replace("{Name}","A");
System.
out.
println("After: " + str
); }
}
Y2xhc3MgRXhhbXBsZQp7CglwdWJsaWMgc3RhdGljIHZvaWQgbWFpbiAoU3RyaW5nW10gYXJncykgdGhyb3dzIGphdmEubGFuZy5FeGNlcHRpb24KCXsKCQlTdHJpbmcgc3RyID0gIkhlcmUgaXQgaXM6IHtOYW1lfSBBbmQgYWdhaW46IHtOYW1lfSI7CgkJU3lzdGVtLm91dC5wcmludGxuKCJCZWZvcmU6ICIgKyBzdHIpOwoJCXN0ciA9IHN0ci5yZXBsYWNlKCJ7TmFtZX0iLCJBIik7CgkJU3lzdGVtLm91dC5wcmludGxuKCJBZnRlcjogIiArIHN0cik7Cgl9Cn0=