Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能是一个菜鸟问题,但经过一番搜索,我找不到答案。
我收到了如下字符串:“Distribui\u00e7\u00e3o Alimentar”,我想将其设置为EditText. 如何将 \u00e7 和 \u00e3o“替换”为“ç”和“ã”?
EditText
提前致谢。
带字符串替换功能
String newString = stringName.replaceAll("\u007", "c');
String newString2 = stringName.replaceAll("\u00e7", "a");
你可以用concat方法将两者连接起来
concat