Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package week3;
- import java.sql.DriverManager;
- import java.sql.*;
- public class Week3 {
- public static void main(String[] args) {
- String username = "root";
- String password = "motherlode";
- String url;
- String driver = "com.mysql.jdbc.Driver";
- try{
- Class.forName(driver);
- Connection con = DriverManager.getConnection(url, username, password);
- }
- catch(SQLException sqlFout){
- }
- catch(ClassNotFoundException notFound){
- }
- }
- public Week3(){
- }
- public void SimpleDataSource(){
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment