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.
try {
statement = con.prepareStatement(
"SELECT * FROM users WHERE Username ='" +
LOGIN_UsernameField.getText() + "' AND Password ='" +
LOGIN_PasswordField.getPassword() + "'");
System.out.println ();
}
That system.out.println
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.