-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMission.java
More file actions
83 lines (68 loc) · 2.05 KB
/
Mission.java
File metadata and controls
83 lines (68 loc) · 2.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
package com.company;
public class Mission {
private String teacherName;
private String courseName;
private String day;
private String time;
private String classroom;
private String classId;
public Mission(String teacherName, String courseName, String day, String time, String classroom, String classId) {
this.teacherName = teacherName;
this.courseName = courseName;
this.day = day;
this.time = time;
this.classroom = classroom;
this.classId = classId;
}
public String getCourseName() {
return courseName;
}
public void setCourseName(String courseName) {
this.courseName = courseName;
}
public String getTeacherName() {
return teacherName;
}
public void setTeacherName(String teacherName) {
this.teacherName = teacherName;
}
public String getDay() {
return day;
}
public void setDay(String day) {
this.day = day;
}
public String getTime() {
return time;
}
public void setTime(String time) {
this.time = time;
}
public String getClassroom() {
return classroom;
}
public void setClassroom(String classroom) {
this.classroom = classroom;
}
public String getClassId() {
return classId;
}
public void setClassId(String classId) {
this.classId = classId;
}
@Override
public String toString() {
return "Mission{" +
"teacherName='" + teacherName + '\'' +
", courseName='" + courseName + '\'' +
", day='" + day + '\'' +
", time='" + time + '\'' +
", classroom='" + classroom + '\'' +
", classId='" + classId + '\'' +
'}';
}
public String out(){
if(teacherName.length()==0) return "";
return teacherName+"老师"+"("+courseName+")"+"在"+classroom+"教室"+"教"+classId+"班";
}
}