新手上路了 发表于 2008-4-22 16:29

为什么老说我类型不兼容?

public ArrayList getAllClass() {
        ArrayList al = new ArrayList();
        DBUtil db = new DBUtil();
        try {
           Statement st = db.getConnection().createStatement("");     //这里说有问题
            
        } catch (Exception ex) {
            Logger.getLogger(ClassDAOImpl.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

Ethip 发表于 2008-4-22 17:22

db.getConnection().createStatement();

ming206 发表于 2008-4-23 09:21

createStatement(""); 里的""是什么?一般是用不带参数的.如二楼所说.
我这里废话一下帮你顶~!

页: [1]

编程论坛