JesuisEva

java week 3

Nov 29th, 2012
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. package week3;
  2.  
  3. import java.sql.DriverManager;
  4. import java.sql.*;
  5.  
  6. public class Week3 {
  7.  
  8.  
  9. public static void main(String[] args) {
  10.  
  11. String username = "root";
  12. String password = "motherlode";
  13. String url;
  14. String driver = "com.mysql.jdbc.Driver";
  15.  
  16. try{
  17. Class.forName(driver);
  18. Connection con = DriverManager.getConnection(url, username, password);
  19. }
  20.  
  21. catch(SQLException sqlFout){
  22.  
  23. }
  24. catch(ClassNotFoundException notFound){
  25.  
  26. }
  27.  
  28. }
  29.  
  30. public Week3(){
  31.  
  32. }
  33.  
  34. public void SimpleDataSource(){
  35.  
  36. }
  37.  
  38. }
Advertisement
Add Comment
Please, Sign In to add comment