Advertisement
Guest User

Untitled

a guest
Aug 15th, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.27 KB | None | 0 0
  1. import java.sql.*;
  2.  
  3. public class Controler {
  4.     Connection conn;  
  5.     Controler () throws SQLException {
  6.         try {
  7.             conn = DriverManager.getConnection("jdbc:postgresql://localhost:5432/chat", "nastia", "1qazxsw2");
  8.         }
  9.         catch (SQLException e) {
  10.             throw e;
  11.         }
  12.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement