public class DBConnect {
public static Connection connect() {
Connection con=null;
try {
Class.forName("org.sqlite.JDBC");
con=DriverManager.getConnection("jdbc:sqlite:TimeTableManager.db");
System.out.println("Connected");
}catch (ClassNotFoundException | SQLException e) {
System.out.println(e+"");
}
return con;
}
}vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
-
Alahakoon K.M.R.A.B authored4b1153dd