title: Setting up a user registration in Java
body: <p>I'm trying to set up a user registration application in Java. Here's my current code (yields an error)</p>
  
  <pre><code>import java.util.ArrayList;
  
  public class Registration {
  
      private static ArrayList&lt;String&gt; userlist = new ArrayList&lt;String&gt;();
  
  
      public static void requestRegistration(String username, String password, String f_name, String l_name, String email)
      {
          userlist.add(username, password, f_name, l_name, email);
      }
  </code></pre>
  
  <p>This code does not run because you cannot add multiple arguments to an array. I'm thinking my array list should be a String array instead of just String. Any ideas?</p>