Hello. I guess I'm the only one who needs help with JDBC here! Anyway, So I need to do a comparison in a java program. I am working with a database. How could I get a value from the database and use it in the program, like to do a comparison statement? So if I have the field answer, I can compare it with a currently selected item in a combo box to find out if the answer is correct. Such as with an if statement.

How would I do this? I can show code if I need to.

Thanks!