07 2010 档案

Java中的参数传递
摘要:当然要看你怎么定义by value 和 by reference。Java的官方文档【3】 中如此描述:“When the method or constructor is invoked, the values of the actual argument expressions initial... 阅读全文

posted @ 2010-07-24 11:55 爱你一万年123 阅读(142) 评论(0) 推荐(0)

如何判断数据库中是否存在一个数据表
摘要:方法是通过查询数据库meta数据来获取数据表。 public static Boolean doesTableExist(String tablename) { Connection con = null; HashSet set = new HashSet... 阅读全文

posted @ 2010-07-13 05:19 爱你一万年123 阅读(276) 评论(0) 推荐(0)

HTTP Client 编写
摘要:手头生正好有一个HTTP Client例子,使用socket 连接。代码如下: import java.io.InputStream; import java.io.OutputStream; import java.net.InetAddress; import java.net.Socket;... 阅读全文

posted @ 2010-07-02 23:55 爱你一万年123 阅读(174) 评论(0) 推荐(0)

导航