1 Star 1 Fork 0

CS-IMIS-23/20172313yukunpeng

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
StudentBody.java 1.29 KB
一键复制 编辑 原始数据 按行查看 历史
余坤澎 提交于 7年前 . docs:example practice
//***************************************************************
// StudentBody.java Author:Lewis/Loftus
//
// Demonstrates the use of an aggregate class.
//***************************************************************
public class StudentBody
{
//-----------------------------------------------------------
//Creates some Address and Student objects and prints them.
//-----------------------------------------------------------
public static void main(String []args)
{
Address school = new Address("800 Lancaster Ave.","Villanova",
"PA",19085);
Address jHome = new Address("21 Jump Street","Blacksburg",
"VA",24551);
Student john = new Student("John","Smith",jHome,school);
Address mHome = new Address("123 Main Street","Euclid","OH",44132);
Student marsha = new Student("Marsha","Jones",mHome,school);
System.out.println(john);
System.out.println(); System.out.println(marsha);
}
}
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

搜索帮助