1 Star 1 Fork 0

CS-IMIS-23/20172313yukunpeng

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
SloganCounter.java 1.04 KB
一键复制 编辑 原始数据 按行查看 历史
余坤澎 提交于 7年前 . docs:practice
//**************************************************************
// SloganCounter.java Author
//
// Demonstrates the use of the static modifier
//**************************************************************
public class SloganCounter
{
//----------------------------------------------------------
// Creates several Slogan objects and prints the number of
// objects that were created
//----------------------------------------------------------
public static void main(String[] args)
{
Slogan obj;
obj = new Slogan("Remember the Alamo.");
System.out.println(obj);
obj = new Slogan("Don't Woory. Be Happy.");
System.out.println(obj);
obj = new Slogan("Live Free or Die.");
System.out.println(obj);
obj = new Slogan("Talk is Cheap.");
System.out.println(obj);
obj = new Slogan("Write Once, Run Anywhere.");
System.out.println(obj);
System.out.println();
System.out.println("Slogans created: " + Slogan.getCount());
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/CS-IMIS-23/20172313yukunpeng.git
git@gitee.com:CS-IMIS-23/20172313yukunpeng.git
CS-IMIS-23
20172313yukunpeng
20172313yukunpeng
master

搜索帮助

371d5123 14472233 46e8bd33 14472233