title: Java constructor varargs conflict when passing string
body: <p>I have an issue with one of my class. I'm using a "varargs" constructor for unknown number of parameter. </p>
  
  <pre><code>public Groupe(String...nom){        
      for(String item:nom){   
          this.nom.add(item.toLowerCase());
      }
  }
  
  public Groupe(String nom){      
      String[] list =nom.split(",");
      for(String s : list){           
          this.nom.add(s.toLowerCase());
      }
  }
  </code></pre>
  
  <p>The first constructor is called...that's fine, but there is a conflict when passing only ONE parameter with the second contructor. I would like to use the second constructor when passing only one string, and the first if 2 and more parameters.</p>
  
  <p>I'd want to handle this
          new Groupe("Foo,Bar");</p>
  
  <p>This is where I call it. I suspect the "error" comes from there</p>
  
  <pre><code>public void reserver(String...nom){
      Groupe gr = new Groupe(nom);
      passager.add(gr);       
  }
  </code></pre>
  
  <p>I don't pass a String, but a Varargs (tab?)...</p>