有关URL的问题:

public class EchoClient {
private Socket socket;
	public EchoClient(String url,int port){
		try {
			socket=new Socket(url, port);
			System.out.println("Client:connected to"+url+":"+port);
		} catch (Exception e) {
			e.printStackTrace();
			System.exit(1);
		}
	}
	public static void main(String[] args) {
		EchoClient client =new EchoClient("url", 10001);
		client.start();
	}
}

main函数里这个url该怎么找啊,谢谢了

hitman
浏览 1130回答 1
1回答
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java