多人聊天的简单实现(学习) socket = new Socket(arr[0],Integer.parseInt(arr[1])); final SocketHandler h = new SocketHandler(socket); new Thread(h).start(); btn.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent e) { String s = textField.getText(); if(null!=s&&!"".equa
太简易了吧,如果要学习一下,写上些有用的注释啊