✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
In acest caz, variabila sir2 este egala cu "cccbbc", inlocuind toate aparitiile caracterelor 'a' si 'c' cu caracterul 'c'
String sir1 = "aaabbc";
String sir2 = sir1.replaceAll("[^ac]", "c");
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!