Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void insertCitizen(Citizen h)
- {
- try {
- String sql = "INSERT INTO CITIZENS VALUES('" + h.name + "','" + h.surname + "','" + h.identity + "')";
- this.stmt.execute(sql);
- } catch (SQLException ex) {
- Logger.getLogger(Dbconnection.class.getName()).log(Level.SEVERE, null, ex);
- }
- }
Add Comment
Please, Sign In to add comment