I am trying to outprint a possible two different lines in to 1 text box based on the selection of a combobox.
I want to print this in to textField called textACall 
here is my code.. I am getting error at the if statement.
  private void answerCallActionPerformed(java.awt.event.ActionEvent evt) {                                           
        try {
        String sql = "SELECT Answer FROM contact";
        pst = conn.prepareStatement(sql);
        rs = pst.executeQuery();
                String answer = rs.getString("answer");
                if (answer == 0) {
                    System.out.println ("Answer Call!");
                }
                else {
                    System.out.println("Do Not Answer!");
                }
    }
        catch(Exception e) {
        JOptionPane.showMessageDialog(null, e);
        }
    }    
 
    