title: bad operand types for binary operator '!=' first type: String second type: int
body: <p>I have a problem concerning the display , I would like to see each items from my variable CodeA of type String which is in a JComboBox. The variable CodeA represents each identification from the table Album.</p>
  
  <p>In my DaoAlbumMySql I have error message.. </p>
  
  <p><em>bad operand types for binary operator '!='   first type:  String   second type: int</em></p>
  
  <p>The problem is according NetBeans the <code>if (idCat != 0)</code> </p>
  
  <pre><code>   public ArrayList &lt;Album&gt; selectAlbums (String idCat)
          {
              ArrayList &lt;Album&gt; myList = new ArrayList();
              String req;
  
              if (idCat != 0)
              {
                  req = "Select CodeA, TitreA, A.IdentC, DenomCat, " +
                  " DateArrivee from album A,  " +
                  "chanteur C where A.IdentC = C.IdentC" +
                  " and CodeA = " + idCat + " order by 1";
  
              }
  </code></pre>