@@ -0,0 +1,1201 @@
+package ru.job4j;%0A%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0Aimport sun.rmi.runtime.Log;%0A%0Aimport java.sql.*;%0Aimport java.util.Properties;%0A%0Apublic class SQLStorage %7B%0A    private final static Logger log = LoggerFactory.getLogger(SQLStorage.class);%0A%0A    public static void main(String%5B%5D args) %7B%0A        String url = %22jdbc:postgresql://localhost:5432/java_from_a_to_z%22;%0A        String username = %22postgres%22;%0A        String password = %22password%22;%0A%0A        Connection conn = null;%0A        try %7B%0A            conn = DriverManager.getConnection(url, username, password);%0A            Statement st = conn.createStatement();%0A            ResultSet rs = st.executeQuery(%22SELECT * FROM cars%22);%0A            while (rs.next()) %7B%0A                System.out.println(String.format(%22%25d %25S%22, rs.getInt(%22id%22),%0A                        rs.getString(%22name%22) ));%0A            %7D rs.close();%0A            st.close();%0A        %7D catch (Exception e) %7B%0A            log.error(e.getMessage(), e);%0A        %7D finally %7B%0A            if (conn != null) %7B%0A            try %7B%0A                conn.close();%0A            %7D catch (SQLException e) %7B%0A                log.error(e.getMessage(), e);%0A            %7D%0A        %7D%0A        %7D%0A    %7D%0A%7D%0A

add file for chapter_004_8.4.1