2 Star 0 Fork 0

CS-IMIS-23/zc20172324

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
POSTester.java 944 Bytes
一键复制 编辑 原始数据 按行查看 历史
zc20172324 提交于 7年前 . 代码6.1
package chap6;
import java.io.IOException;
public class POSTester {
public static void main(String[] args) throws IOException {
ProgramOfStudy pos = new ProgramOfStudy();
pos.addCourse(new Course("CS",101,"Introduction to Programming","A-"));
pos.addCourse(new Course("ARCH",305,"Building Analysis","A"));
pos.addCourse(new Course("GER",210,"Intermediate German"));
pos.addCourse(new Course("CS",320,"Computer Architecture"));
pos.addCourse(new Course("THE",201,"The Theatre Experience"));
Course arch = pos.find("CS",320);
pos.addCourseAfter(arch,new Course("CS",321,"Operating Systems"));
Course theatre = pos.find("THE",201);
theatre.setGrade("A-");
Course german = pos.find("GER",210);
pos.replace(german,new Course("FRE",110,"Beginning French","B+"));
System.out.println(pos);
pos.save("ProgramOfStudy");
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/CS-IMIS-23/zc20172324.git
git@gitee.com:CS-IMIS-23/zc20172324.git
CS-IMIS-23
zc20172324
zc20172324
master

搜索帮助