?? server.java
字號:
/**
* Write a description of class NTalk here.
*
* @author (your name)
* @version (a version number or a date)
*/
import java.io.*;
import java.net.*;
import java.util.*;
public class Server
{
public static void main(String[] args) throws IOException
{
int PORT = 2000;
ServerSocket ss = new ServerSocket(PORT);
System.out.println("The ntalk is monitoring PORT: "+PORT);
HashMap<String,Socket> talkerList = new HashMap<String,Socket>();
for(;;)
(new TalkerThread((ss.accept()),talkerList)).start();
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -