提示你需要捕获异常
这样:
try{
ServerSocket server = new ServerSocket (1000);
}catch(Exception e){}

解决方案 »

  1.   

    // SSServer.javaimport java.net.*;class SSServer {
      public static void main(String[] args) {
       try{
        ServerSocket server = new ServerSocket (1000);
       }catch(java.io.IOException e){
        e.printStackTrace();
       }
      }
    }
      

  2.   

    you need to learn more about exceptions.read the API bofore writing related programs.the API will state very clearly what exceptions may be thrown by a method.here you need to catch IOException thrown by the ServerSocket constructor.