String literal is not properly closed by a double-quote
这句话的意思是双引号字符串是不正确关闭
在14行,当行注释去掉
try{
Class.forName("com.mysql.jdbc.Driver").newInstance();
// 创建连接
java.sql.Connection con=java.sql.DriverManager.getConnection("jdbc:mysql: 127.0.0.1:3306/ch2","root","abcd1234!");
// 创建执行语句
java.sql.Statement stmt=con.createStatement();
}
追问
String literal is