I have a sql statement that compares the favorites list of two users. On it's own it works fine, but I am trying to connect to it two comboBox that I have created. These comboboxes' prompt the user to choose between available users to compare. How would I add the comboBoxes into my sql statement? If I should use a preparedStatement, what should I exchange in my sql statement for a ? value?
This is my code for the sql statement activated by a button click