static Socket server;
public static void main(String[] args)throws Exception{
server=new Socket(.netAddress.getLocalHost(),5678);
BufferedReader in=new BufferedReader(new InputStreamReader(server.getInputStream()));
PrintWriter out=new PrintWriter(server.getOutputStream());
BufferedReader wt=new BufferedReader(new InputStreamReader(System.in));
while(true){
文章来源于领测软件测试网 https://www.ltesting.net/