📄 mailsystemtest.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -