i keep getting this message in netbeans while doin project for collage
how to fix it?
try{
stmt = conn.createStatement();
int stdId = Integer.parseInt(id.getText());
String sql = "SELECT * FROM STUDENT TABLE WHERE id ='"+stdId+"' ";
rs = stmt.executeQuery(sql);
if(rs.next()){
name.setText(rs.getString("stdName"));
FatherName.setText(rs.getString("stdFatherName"));
City.setText(rs.getString("stdCity"));
blood.setText(rs.getString("stdBlood"));
phone.setText(rs.getString("stdPhone"));
stdkelas.setText(String.format("%s",rs.getInt("Class")));
}else{
JOptionPane.showMessageDialog(null,"Record Not Found");
}
}catch(HeadlessException | NumberFormatException | SQLException e){JOptionPane.showMessageDialog(null,e);}
i tried to found and solution and i expect people will help