多人聊天的简单实现(学习) 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