摘要: //使用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 yanpeng 阅读(947) 评论(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 yanpeng 阅读(460) 评论(0) 推荐(0) 编辑