branch 476 Bytes
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