0 votes
in JAVA by
How to declare an array in java?

1 Answer

0 votes
by

How to replace a character in a string in java?

String replace(char oldChar, char newChar): It replaces all the occurrences of a oldChar character with newChar character. For e.g. “pog pance”.replace(‘p’, ‘d’) would return dog dance.

Related questions

0 votes
asked Oct 20, 2020 in JAVA by sharadyadav1986
0 votes
asked Oct 9, 2020 in JAVA by SakshiSharma
...