Skip to content
Snippets Groups Projects
Commit 19dec6e2 authored by Dennis Eisold's avatar Dennis Eisold
Browse files

Warnings entfernt

parent cca35df9
No related branches found
No related tags found
No related merge requests found
......@@ -7,13 +7,13 @@ import java.sql.Statement;
public class Datenbank {
Connection con;
private Connection con;
public Datenbank() {
try {
this.connect();
this.createTables();
} catch (SQLException | ClassNotFoundException e) {
} catch (SQLException e) {
e.printStackTrace();
}
}
......@@ -36,9 +36,7 @@ public class Datenbank {
/**
* Verbindung zur Datenbank aufbauen
*/
public void connect() throws ClassNotFoundException, SQLException {
Class.forName("org.sqlite.JDBC");
private void connect() throws SQLException {
String datenbankdatei = "c:\\temp\\telefonbuch.sqlite";
this.con = DriverManager.getConnection("jdbc:sqlite:" + datenbankdatei);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment