求助!!!Class.forName()报错
。。。。。。。
try{
Class.forName("com.mysql.jdbc.Driver").newInstance();
java.sql.Connection conn=DriverManager.getConnection(url);
statement = conn.createStatement();
}catch(Exception ex){
ex.printStackTrace();
}
。。。。。。。
出错信息:The method forName(String) is undefined for the type String
本来好像没错,但后来导入了一个包后就老报错!!
帮帮忙啊!!!!!!!!