mailsystemtest.java

来自「这个是学习网络编程的好好文档! 里面有一些老师发给的学习jsp的课件!」· Java 代码 · 共 24 行

JAVA
24
字号
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

/**
   This program tests the mail system. A single phone
   communicates with the program through System.in/System.out.
*/
public class MailSystemTest
{
   public static void main(String[] args) throws IOException
   {
      MailSystem system = new MailSystem(MAILBOX_COUNT);
      BufferedReader console = new BufferedReader(
         new InputStreamReader(System.in));

      Telephone p = new Telephone(console);
      Connection c = new Connection(system, p);
      p.run(c);
   }

   private static final int MAILBOX_COUNT = 20;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?