-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEmail.java
More file actions
38 lines (29 loc) · 868 Bytes
/
Email.java
File metadata and controls
38 lines (29 loc) · 868 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
import java.io.Serializable;
public class Email implements Serializable {
private String emailName;
private String content;
private String date;
private String subject;
public Email(String emailName, String content, String subject) {
this.emailName = emailName;
this.content = content;
this.subject = subject;
}
////////////////////////setters///////////////////////////////////
public void setDate(String date) {
this.date = date;
}
///////////////////////getter/////////////////////////////////////
public String getEmailName() {
return emailName;
}
public String getContent() {
return content;
}
public String getDate() {
return date;
}
public String getSubject() {
return subject;
}
}