How can I replace "a b" by "a b" in Java ME?
The replace()
method doesn't accept Strings, but only characters. And since a double space contains two characters, I think I have a small problem.
How can I replace "a b" by "a b" in Java ME?
The replace()
method doesn't accept Strings, but only characters. And since a double space contains two characters, I think I have a small problem.
Here's one function you might use:
What do you think of this one? I tried one myself.