title: Error: No suitable method found for add(String)
body: <p>I am getting this only one error message every-time I'm running the program. This is a small part of my code:</p>
  
  <pre><code>JFrame f; JPanel p1;
  int i=0, m=0;
  int[] subbb = {0,1,2,3};
  String[] status = {"Add", "Repeat"};
  String[] comboStat = {"combo_status1", "combo_status2","combo_status3", "combo_status4"};               
  JComboBox combo_status1, combo_status2, combo_status3, combo_status4;
  JComboBox combo_set_panel = new new JComboBox(subbb);
  
  combo_status1=new JComboBox(status); combo_status2=new JComboBox(status);
  combo_status3=new JComboBox(status); combo_status4=new JComboBox(status);
  
  for(i=0; i&lt;4; i++) {
     if (combo_set_panel.getSelectedIndex() == subbb[i]) {
        for(m=0; m&lt;=subbb[i]; m++)
        {
           p1.add(comboStat[m]); //Error Message Shows This Line
        }
     }
  }
  
  f.add(p1);
  </code></pre>
  
  <p>But, while running this program. I am getting this error Message:</p>
  
  <pre><code>Add a String: error: no suitable method found for add(String)
  </code></pre>
  
  <p>Anyone please tell me a solution for this error. 
  What is the suitable method for <code>add(String)</code>?</p>