@@ -0,0 +1,999 @@
+import java.sql.*;%0A%0Apublic class DatabaseStreams %7B%0A%0A    public static void method() %7B%0A%0A        Connection connection = null;%0A        Statement statement = null;%0A%0A        try %7B%0A            connection = DriverManager.getConnection(%22blah%22);%0A            statement = connection.createStatement();%0A            // do something with statement%0A        %7D%0A        catch (SQLException e) %7B%0A            System.err.println(%22Error: %22 + e);%0A        %7D%0A        finally %7B%0A            if (statement != null) %7B%0A                try %7B%0A                    statement.close();%0A                %7D%0A                catch (SQLException e) %7B%0A                    System.err.println(%22Error closing statement: %22 + e);%0A                %7D%0A            %7D%0A            if (connection != null) %7B%0A                try %7B%0A                    connection.close();%0A                %7D%0A                catch (SQLException e) %7B%0A                    System.err.println(%22Error closing connection: %22 + e);%0A                %7D%0A            %7D%0A        %7D%0A    %7D%0A%7D%0A%0A

Check for closing database streams.