title: How do I print table data from database to Java Console?
body: <p>I'm not good with Java I've only learned the basics and it's still kind of fresh somehow. I want to know how does someone print a row from a table to the Java Console.</p>
  
  <pre><code>try {
      statement = con.prepareStatement(
                  "SELECT * FROM users WHERE Username ='" + 
                  LOGIN_UsernameField.getText() + "' AND Password ='" +
                  LOGIN_PasswordField.getPassword() + "'");
      System.out.println ();
  }
  </code></pre>
  
  <p>That <code>system.out.println</code> thing I know that doesn't work of course, I need something to replace it to print out the rows that comes from the SQL Statement right above it.</p>