Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Connection connection = null;
- try {
- connection=DriverManager.getConnection(
- "jdbc:postgresql://teachdb.cs.rhul.ac.uk/CS2855/<your username>",
- user, password);
- } catch (SQLException e) {
- System.out.println("Connection Failed! Check output console");
- e.printStackTrace();
- }
- return connection;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement