摘要: // divideByZero.jvaclass DivideByZero{ public static void main (String args[]) { System.out.println(1.0 / 0.0); System.out.println(-1.0 / 0.0); System.out.println(0.0 / 0.0); System.out.println(1 ... 阅读全文
posted @ 2006-05-09 18:27 Tnu 阅读(304) 评论(0) 推荐(0) 编辑
摘要: //Exchange.java class Exchange{ public static void main (String args[]) { int num1 = 10, num2 = 20, temp; //perform a traditional exchange. this requires the use of a //temporary variable. any dat... 阅读全文
posted @ 2006-05-09 18:12 Tnu 阅读(1176) 评论(0) 推荐(0) 编辑
摘要: package aad; import java.awt.*;import java.awt.event.*;import javax.swing.*; /** * Title: switch sentence * Description: * Copyright: Copyright (c) 2006 * Company: * @author not attributable * @vers... 阅读全文
posted @ 2006-04-08 18:03 Tnu 阅读(5974) 评论(2) 推荐(0) 编辑
摘要: package aac; import java.awt.*;import java.awt.event.*;import javax.swing.*; /** * Title: * Description: * Copyright: Copyright (c) 2006 * Company: * @author not attributable * @version 1.0 */ publ... 阅读全文
posted @ 2006-04-08 17:43 Tnu 阅读(825) 评论(0) 推荐(0) 编辑
摘要: package aab; import java.awt.*;import java.awt.event.*;import javax.swing.*; /** * Title: the leap year * Description: * Copyright: Copyright (c) 2006 * Company: * @author not attributable * @versio... 阅读全文
posted @ 2006-04-08 17:32 Tnu 阅读(2524) 评论(0) 推荐(0) 编辑
摘要: package aaa; import java.awt.*;import java.awt.event.*;import javax.swing.*; /** * Title: 条件语句 * Description: * Copyright: Copyright (c) 2006 * Company: * @author not attributable * @version 1.0 */ ... 阅读全文
posted @ 2006-04-08 17:18 Tnu 阅读(1981) 评论(0) 推荐(0) 编辑
摘要: package tcpserver; import java.awt.*;import java.awt.event.*;import javax.swing.*;import com.borland.jbcl.layout.*;import java.net.*;import java.io.*;/** * Title: TCPServer * Description: * Copyright... 阅读全文
posted @ 2006-04-08 13:38 Tnu 阅读(921) 评论(0) 推荐(0) 编辑
摘要: package aaa; import java.awt.*;import java.awt.event.*;import javax.swing.*; /** * Title: 记事本 * Description: * Copyright: Copyright (c) 2006 * Company: * @author not attributable * @version 1.0 */ p... 阅读全文
posted @ 2006-04-08 13:37 Tnu 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 发送数据──write()、writev()、send()、sendto()、 sendmsg() 用于socket数据发送的系统调用一共有5个,其中前3个用于面向连接传输,后2个用于无连接传输。面向连接的调用可以不指定信宿地址,而无连接调用必须指定。假如无连接socket的双方均调用过connect(),可以认为是建立了有连接的socket,也可以用面向连接调用发送数据。 3个面向... 阅读全文
posted @ 2006-04-03 19:30 Tnu 阅读(334) 评论(0) 推荐(0) 编辑