public class MailSystem extends java.lang.Object
Constructor and Description |
---|
MailSystem(int mailboxCount)
Constructs a mail system with a given number of mail boxes
|
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