【发布时间】:2014-09-25 14:00:51
【问题描述】:
我想要做的是将字符串中的多个空格替换为单个空格。
我有字符串变量
String text = "i want to replace multiple space";
我希望它变成
String text = "i want to replace multiple space";
我该怎么做?请帮帮我,谢谢。
【问题讨论】:
-
你卡在哪里了?
-
已回答here