public class MailBox extends Object
| Constructor and Description |
|---|
MailBox()
Constructs a new instance of
MailBox. |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears this mail box, removing all the emails sent.
|
int |
countEmails()
Returns the number of emails sent.
|
List<Email> |
getEmails()
Returns the emails sent.
|
Email |
getLastEmail()
Returns the last email sent.
|
void |
sendEmail(Email email)
Stores a new email in this email box.
|
public MailBox()
MailBox.public void sendEmail(Email email)
email - an email.public Email getLastEmail()
public int countEmails()
public void clear()
Copyright © 2017. All rights reserved.