Computer Science, asked by Aparna9135, 3 months ago

Write a program to replace every occurrence of the letter A with O.​

Answers

Answered by manjubadola1
1

Answer:

Here's an example: String meal = "Hambbburger"; String replaced = meal. replaceAll("b",""); Note that the replaced variable is necessary since replaceAll doesn't change the string in place but creates a new one with the replacement ( String is immutable in java).

Similar questions