《java基础入门》课后题答案.doc
还剩
23页未读,
继续阅读
下载文档到电脑,马上远离加班熬夜!
亲,喜欢就下载吧,价低环保!
内容要点:
}class TCPServer {public void listen() throws Exception {ServerSocket serverSocket = new ServerSocket(8002);Socket client = serverSocket.accept();OutputStream os = client.getOutputStream();os.write("hpublic class Test01 {public static void main(String[] args) throws Exception {InetAddress localAddress = InetAddress.getLocalHost();InetAddress remoteAddress = InetAddress.getByName("www.oracle.com");JMenuItem source = (JMenuItem) (e.getSource());label.setText("选择了菜单:" + source.getText());label.setHorizontalAlignment(JLabe