1 Star 0 Fork 0

谢继业/Using Objects and Implementing Classes

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
ReplacementTester.java 593 Bytes
一键复制 编辑 原始数据 按行查看 历史
谢继业 提交于 2020-04-28 14:11 . add ReplacementTester
public class ReplacementTester
{
public static void main(String[] args)
{
String greeting = "Hello, elite hacker!";
// your work here
// call the replace method four times
String modifiedGreeting;
modifiedGreeting = greeting.replace('e','3');
modifiedGreeting = modifiedGreeting.replace('i','1');
modifiedGreeting = modifiedGreeting.replace('l','7');
modifiedGreeting = modifiedGreeting.replace('o','0');
System.out.println(modifiedGreeting);
System.out.println("Expected: H3770, 371t3 hack3r!");
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xjyng/Using-Objects-and-Implementing-Classes.git
git@gitee.com:xjyng/Using-Objects-and-Implementing-Classes.git
xjyng
Using-Objects-and-Implementing-Classes
Using Objects and Implementing Classes
master

搜索帮助