0
Java program to replace certain characters from string without using predefined methods.
How can we do this with the help of array?
3 Respostas
+ 8
It is possible, if you use a String array, loop through it, search for equality and replace those chars by assigning a new value to the element.
But it is recommended to use equals method to check equality for good reasons, so this is not safe.
+ 8
@Empty
But who would do that? ;)
https://code.sololearn.com/cUrUfZyc1TZt/?ref=app
+ 1
@Empty, it is possible in Java.