servermain.java

来自「uml ooad 有ppt文件 和源码哦!跟大家分享」· Java 代码 · 共 13 行

JAVA
13
字号
package server;
import com.kettas.common.*;
public class ServerMain {
	public static void main(String[] args) throws Exception{
		System.out.print("Type: 0 TCP   1 UDP");
		int type=SystemIn.readInt();
		Server s;
		if (type==0) s=new TCPServer();
		else s=new UDPServer();
		s.service();
	}
}

⌨️ 快捷键说明

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