这是我的代码。我在语句行中声明错误:我的Swing应用程序中的数据库连接错误转换为语句
Statement st=null;
Connection con=null;
Class.forName("com.mysql.jdbc.Driver");
con=DriverManager.getConnection("jdbc:mysql://localhost/mydb","root","");
st=(Statement) con.createStatement();
如何解决此问题?
耶及其工作@peeskillet :)我删除java.beans.Statement中 – Suresh