public int updateDatabase(String voorNaam, String achterNaam, String telNr) { String insert = "INSERT INTO Telnrs" + " VALUES ('" + voorNaam + "','" + achterNaam + "','" + telNr + "')"; try { Statement statement = link.createStatement(); int x = statement.executeUpdate(insert); statement.close(); } catch (SQLException e) { e.printStackTrace(); System.exit(1); } return x; }