We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64ea531 commit 91dd176Copy full SHA for 91dd176
src/main/java/com/napier/sem/App.java
@@ -4,8 +4,23 @@
4
5
public class App {
6
7
- public static void main(String[] args) {
+ public static void main(String[] args)
8
+ {
9
+ // Create new Application
10
+ App a = new App();
11
12
+ // Connect to database
13
+ a.connect();
14
+
15
+ // Disconnect from database
16
+ a.disconnect();
17
+ }
18
+ private Connection con = null;
19
20
+ public void connect() { /* load driver + DriverManager.getConnection(...) */ }
21
22
+ public void disconnect() { /* close con if not null */ }
23
24
try {
25
// Load Database driver
26
Class.forName("com.mysql.cj.jdbc.Driver");
0 commit comments