如何使用java替换字符串中的字符呢?
以下实例中我们使用 java String 类的 replace 方法来替换字符串中的字符:
StringReplaceEmp.java 文件
以上代码实例输出结果为:
Wello World Wallo World Hallo World