logo

Crowdly

In acest caz, variabila sir2 este egala cu "cccbbc", inlocuind toate aparitiile ...

✅ 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");

More questions like this

Want instant access to all verified answers on elearning.unitbv.ro?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!