代码拉取完成,页面将自动刷新
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");
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。