001package horstmann.ch02_mail;
002import java.util.Scanner;
003
004/**
005   This program tests the mail system. A single phone
006   communicates with the program through System.in/System.out.
007 */
008public class MailSystemTester
009{
010        public static void main(String[] args)
011        {
012                MailSystem system = new MailSystem(MAILBOX_COUNT);
013                Scanner console = new Scanner(System.in);
014                Telephone p = new Telephone(console);
015                Connection c = new Connection(system, p);
016                p.run(c);
017        }
018
019        private static final int MAILBOX_COUNT = 20;
020}