public class MailSystem extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.ArrayList<Mailbox> |
mailboxes |
Constructor and Description |
---|
MailSystem(int mailboxCount)
Constructs a mail system with a given number of mailboxes
|
Modifier and Type | Method and Description |
---|---|
Mailbox |
findMailbox(java.lang.String ext)
Locate a mailbox.
|
public MailSystem(int mailboxCount)
mailboxCount
- the number of mailboxespublic Mailbox findMailbox(java.lang.String ext)
ext
- the extension number