1 Star 0 Fork 0

炎渊/Objects Early

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
ReplacementTester.java 514 Bytes
一键复制 编辑 原始数据 按行查看 历史
炎渊 提交于 2020-04-25 01:35 . 上传作业
public class ReplacementTester
{
public static void main(String[] args)
{
String greeting = "Hello, elite hacker!";
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 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/yan_yuan/Objects-Early.git
git@gitee.com:yan_yuan/Objects-Early.git
yan_yuan
Objects-Early
Objects Early
master

搜索帮助