When I use :
mString = mString.replace(" hello 123 everyone", "Yo");
It works fine. But if I use a mix of integer and strings and " "
and then printLn it shows same output but it won't replace! Same thing with indexOf
, if I use to many like " " + variable + more stuff, it won't find it.
The output is identical, this must be a bug in Java.
Anyone know?