package ServerSocket;
import java.net.*;
public class ServerSocket{
public static void main(String[] args)throws Exception{
ServerSocket ss = new ServerSocket(6666);
}
}
//为什么编译器提示我The constructor ServerSocket(int) is undefined
API文档里面明明有构造方法ServerSocket(int port)
------解决思路----------------------
跟你自己的类同名了没看出来么?