-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMain.java
31 lines (20 loc) · 785 Bytes
/
Main.java
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
import java.io.IOException;
import java.sql.SQLException;
import java.sql.*;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws SQLException, IOException {
Scanner input = new Scanner(System.in);
System.out.println("Please enter direct filepath to your .csv file");
String filePath = input.next();
System.out.println("Input received");
Connection connect = SQLDatabaseConnection.getDatabaseConnection();
DataFunctions tableCreator = new DataFunctions();
tableCreator.TableCreation();
ParseData dataParser = new ParseData();
dataParser.setFilePath(filePath);
dataParser.readData();
tableCreator.PrintTables();
connect.close();
}
}