title: Call a method to add an array list input from another method in a different class to original class
body: <p>I'm just starting out BlueJ and I can't figure out how to call a method that takes input from another method from a different class and adds the inputs to an array.
  By the way, this project is the "club" project from BlueJ.</p>
  
  <p>Here is the error:
  <a href="http://oi62.tinypic.com/wk0mz8.jpg" rel="nofollow">http://oi62.tinypic.com/wk0mz8.jpg</a></p>
  
  <p>The code with the error (the ".add" is highlighted to be the error):</p>
  
  <p>(insert class, constructor, etc here)</p>
  
  <pre><code>    public void join(Membership member)
      {
          members.add(member);
      }
  </code></pre>
  
  <p>The method that I'm trying to call for the user inputs:</p>
  
  <pre><code>    public Membership(String name, int month, int year)
          throws IllegalArgumentException
      {
          if(month &lt; 1 || month &gt; 12)
          {
              throw new IllegalArgumentException(
                  "Month " + month + " out of range. Must be in the range 1 ... 12");
          }
          this.name = name;
          this.month = month;
          this.year = year;
      }
  </code></pre>