-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTimeslot.java
More file actions
28 lines (26 loc) · 826 Bytes
/
Timeslot.java
File metadata and controls
28 lines (26 loc) · 826 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
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author GOThreads
*/
public class Timeslot {
private String day;
private int slot;
private int startTime;
private int endTime;
public Timeslot(String day,int slot,int startTime,int endTime){
this.day=day;
this.slot=slot;
this.startTime=startTime;
this.endTime=endTime;
}
public void printAsString(){
System.out.println("Day Of Week: "+this.day+" Slot Number: "+this.slot);
System.out.println("Start time: "+this.startTime+" End Time: "+this.endTime);
System.out.println("=========================================================");
}
}