1 Star 0 Fork 0

明希/Objects Early

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
ClassScheduleTester.java 645 Bytes
一键复制 编辑 原始数据 按行查看 历史
明希 提交于 2020-05-12 19:14 . 提交练习1,2
public class ClassScheduleTester
{
public static void main(String[] args)
{
ClassSchedule class1 = new ClassSchedule("Intro to Java","MWF","9:00", "9:50","Turing 101");
// your work here - test the getTime method
System.out.println( class1.getTime());
System.out.println("Expected: MWF 9:00-9:50");
ClassSchedule class2 = new ClassSchedule("Operating Systems","TTh","12:30","13:45","Turing 307");
// your work here - test the setStartTime method
class2.setStartTime("13:00");
System.out.println(class2.getTime());
System.out.println("Expected: TTh 13:00-13:45");
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/mingxi1103/Objects-Early.git
[email protected]:mingxi1103/Objects-Early.git
mingxi1103
Objects-Early
Objects Early
master

搜索帮助