String replace in j2me/javeme double space

Posted by hsmit on Stack Overflow See other posts from Stack Overflow or by hsmit
Published on 2010-03-28T12:42:32Z Indexed on 2010/03/28 13:03 UTC
Read the original article Hit count: 378

Filed under:
|
|
|

How can I replace this "a  b" by "a b" in j2me?

the replace() method doesn't accept Strings, but only chars. And since a double space contains two chars, I think i have a small problem.

© Stack Overflow or respective owner

Related posts about string

Related posts about replace