code: public static Connection getconnnection() {
  		Connection con = null;
  		try {
  			con = DriverManager.getConnection(url, userName, password);
  		} catch (SQLException e) {
  			e.printStackTrace();
  		}
  		return con;
  	}
docs: Get connection
  
  @return