JDBC Create Record
<p>I am working on some project, where a user can fill in student details in a form with textfields and radio buttons etc, and the values shall then be used to create a record in a database.</p>

<p>Now, this is how i started:</p>

<pre><code>String firstName = textField_1.getText();
String surname = textField_2.getText();
String Gender = rdbtnM.getText();
</code></pre>

<p>Basically, what it does is, its retrieving values from particular input fields.
Now, my question is, for gender i have two radio buttons. rdbtnM and rdbtnF.
A user can only click on one: Male or Female.
How do i write in String Gender, that it should get the value from M or F ?</p>

<p>Please advise?</p>
