-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.java
More file actions
33 lines (28 loc) · 1.03 KB
/
Copy pathApp.java
File metadata and controls
33 lines (28 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package Main;
import java.sql.*;
import System.*;
public class App{
public static final String USERNAME = "root";
public static final String PASSWORD = "root";
public static final String url = "jdbc:mysql://localhost:3306/election"+
"?verifyServerCertificate=false"+
"&useSSL=false"+
"&requireSSL=false"+
"&useLegacyDatetimeCode=false"+
"&"+
"&serverTimezone=UTC";
public static void main( String[] args )throws SQLException{
/*
VotingSystem testOne = new VotingSystem();
Voting testNext = new Voting("Voting 2017");
testNext.addCandidate("Patapov");
testNext.addCandidate("Barakabramovich");
testOne.addUser("Misha","mihan","12345");
testOne.addUser("Valera","bimba","5454");
testOne.addUser("Kosta","ginger","3636");
*/
VotingSystem testOne = new VotingSystem();
Voting testNext = new Voting("Voting 2017",testOne);
testNext.beginVoid("bimba","5454");
}
}