package com.degueLobo.app;

import java.sql.*;

/**
 * Hello world!
 *
 */
public class App
{
    public static void main( String[] args )
    {
        System.out.println( "Hello World!" );
        Connection conn = null;
        Statement stm = null;
        try {
            conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/java", "root", "1234asdf");
            stm = conn.createStatement();
            String sql = "SELECT * FROM user";
            ResultSet a = stm.executeQuery(sql);
            System.out.printf(a.toString());

            conn.close();
            System.out.printf("TOdo pioli");
        } catch (SQLException e) {
            e.printStackTrace();
        }

    }
}

@@ -340,32 +340,43 @@
 306/
-j
 av
-a
+is
 %22, %22
-root%22, %221234asdf
+appuser%22, %227LB7qBZh6Zjmqz7c
 %22);%0A
@@ -457,20 +457,21 @@
  * FROM 
-user
+marca
 %22;%0A     
@@ -530,40 +530,223 @@
     
-System.out.printf(a.toString());
+while(a.next())%0A            %7B%0A                int id = a.getInt(%22id%22);%0A                String marca = a.getString(%22nombre_marca%22);%0A                System.out.println(%22ID: %22 + id + %22; Marca: %22 + marca);%0A            %7D
 %0A%0A  

Create resultset usage example