要抛出导常,
public boolean checkClass(String sql) throws SQLException
{
....
}或者: try
{
if(!rs.next())//该行报错
{
return false;
}
else
{
return true;
}
}
catch(SQLException e)
{
return false;
}
public boolean checkClass(String sql) throws SQLException
{
....
}或者: try
{
if(!rs.next())//该行报错
{
return false;
}
else
{
return true;
}
}
catch(SQLException e)
{
return false;
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货