User user new User陈敬8520try Socket socket new Socket localhost8899OutputStream out socket.getOutputStream ObjectOutputStream objout new ObjectOutputStream out向服务器发送信息objout.writeObject user socket.shutdownOutput System.out.println正在向服务器端发送信息...user.show InputStream in socket.getInputStream BufferedReader bin new BufferedReader new InputStreamReader in System.out.println正在接受服务器端传来的信息...