-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDay.java
More file actions
42 lines (35 loc) · 786 Bytes
/
Day.java
File metadata and controls
42 lines (35 loc) · 786 Bytes
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
package dynamicTT;
import java.util.ArrayList;
public class Day {
//private String name;
private ArrayList <TimeSlot> timeSlot=new ArrayList();
public ArrayList<TimeSlot> getTimeSlot() {
return timeSlot;
}
public void setTimeSlot(ArrayList<TimeSlot> timeSlot) {
this.timeSlot = timeSlot;
}
public Day(String inputname){
// this.setName(inputname);
for(int i=9; i<16; i++){
if(i!=12){
TimeSlot ts=new TimeSlot(/*i*/);
timeSlot.add(ts);
}
}
// TimeSlot ts1=new TimeSlot(12);
// ts1.setSubject("BREAK");
// timeSlot.add(ts1);
// for(int i=1; i<4; i++){
// TimeSlot ts=new TimeSlot(i);
// timeSlot.add(ts);
// }
}
// public String getName() {
// return name;
// }
//
// public void setName(String name) {
// this.name = name;
// }
}