import java.io.*;import java.net.*;import java.lang.*;import java.util.Vector;public class ChatServer {ServerSocket ss = null;Socket s = null;Vector client = new Vector();public static void main(String[] args) {new ChatServer(args);}ChatServer(String[] args) {try{ss = new ServerSocket(Integer.parseInt(args[0]));} catch(IOException e) {System.out.println("Can't make ServerSocket"); }System.out.println("Java Chat Server statred. Accepting the client...");try{while(true) {s = ss.accept();// MAnageClient타입의 객체 mclient생성ManageClient mclient = new ManageClient(s);// mclient를 인자로 하는 쓰레드 객체 m 생성Thread m = new Thread(mclient);//Runnable를 구현한 class ManageClient을 객체로 생성한 숫자 세기// 즉 접속한 Client의 수를 증가시킴