查看完整内容
* 客户端用键盘向服务器发送数据,服务器讲输入的数据反转后返回
*/
public static void main(String[] args) throws UnknownHostException, IOException {
Scanner sc=new Scanner(System.in);
while (true) {
Socket socket =new Socket("127.0.0.1",54321);
BufferedReader br=new BufferedReader(new InputStreamReader(s ...