Class.forName("org.postgresql.Driver"); Connection con = DriverManager.getConnection( "jdbc:postgresql://localhost:5432/libresource", "demo","");Statement stmt = con.createStatement(); ResultSet rs = stmt.executeQuery("SELECT * FROM nodes_"); while (rs.next()) { System.out.println(rs.getString(0)); }