摘要: //使用dbutils1.0版本import java.util.*;import java.util.logging.*;import java.sql.*;import org.apache.commons.dbutils.*;import org.apache.commons.dbutils.handlers.*;public class TestDBUnits {public static void main(String[]args) throws Exception {TestDBUnits test = new TestDBUnits();for(int i = 0 ; i 阅读全文
posted @ 2009-02-05 18:06 pinyue 阅读(959) 评论(0) 推荐(0)
摘要: Process myProcess = Runtime.getRuntime().exec("ipconfig"); InputStreamReader ir = new InputStreamReader(myProcess.getInputStream()); LineNumberReader input = new LineNumberReader (ir); String line; while ((line = input.readLine ()) != null) System.out.println(line); 阅读全文
posted @ 2009-02-05 13:41 pinyue 阅读(476) 评论(0) 推荐(0)