Hi all,
I want to change a part of a string using replace but it doesn't work and I don't get why.
An simple example is this:
Doe's anyone know what I am doing wrong?
1 2 3 | String s = "any string" ; s.replace( "any string" , "another string" ); //should change the string but it doesn't; System.out.println(s); //the string is still "any string" and not "another string"; |