title: How to use List<String> as argument
body: <p>I'm coding an Android app with <a href="https://firebase.google.com/docs/database/android/start/" rel="nofollow noreferrer">Firebase</a> and want to write an object to the database:</p>
  
  <pre><code>public class newEvent {
  
  public String whoEv;
  public String whereEv;
  public String whenEv;
  public String whatEv;
  
  public newEvent() {}
  
  public newEvent(String whoEv, String whereEv, String whenEv, String whatEv) {
      this.whoEv = whoEv;
      this.whereEv = whereEv;
      this.whenEv = whenEv;
      this.whatEv = whatEv;
  }
  }
  </code></pre>
  
  <p>This works, but as you can see they are all 'just' strings. What i want is to have the first argument to be a List, Firebase doesnt allow String[] uploads/writings. 
  The reason is to be able to pass more names into the <code>whoEv</code> as separated <code>Strings</code>/<code>Objects</code>. (to give each name a <code>boolean</code> if they are coming or not).
  Now to the exact problem:<br></p>
  
  <pre><code>public newEvent(List&lt;String&gt; whoEv, String whereEv, String whenEv, String whatEv) {
      this.whoEv = whoEv;
      this.whereEv = whereEv;
      this.whenEv = whenEv;
      this.whatEv = whatEv;
  }
  </code></pre>
  
  <p>When i use this, i have no clue how to write the proper code:</p>
  
  <pre><code>newEvent test = new newEvent(List&lt;String&gt;("derp","max"), "Amsterdam", "31/12/2016", "NewYears Eve");
  </code></pre>
  
  <p>The above obviously doesnt work. <code>Expression expected</code> or <code>unexpected token</code>. What am i missing or doing wrong? Already thanks for reading this!</p>
  
  <p>Edit: Total idiot idea to use <code>List&lt;String&gt;</code>if i want to pass boolean values with the strings... Dont got clue what to use instead though.</p>