title: Returning arraylist error
body: <p>I've been trying to create a class which determines if a set of integers within an arraylist is a subset of another arraylist. </p>
  
  <p>However, I receive an "error: incompatible types: ArrayList cannot be converted to int" whenever I try to compile and it appears that "return members" is causing it.</p>
  
  <p>Could someone tell me what is wrong with "return members"? Any help would be greatly appreciated.</p>
  
  <pre><code>// Define the Set class
  
  import java.util.ArrayList;
  
  class Set {
  
      private ArrayList&lt;Integer&gt; members;
  
      public Set()
      {
          members = new ArrayList&lt;Integer&gt;();
      }
  
      public int getMembers()
      {
          return members;
      }
  
      public void setMembers()
      {
          this.members = members;
      }
  
      // toString() method
      public String toString() 
      {
          return "Set A is a subset of set B.";
      }
  
      // Return true if 'this' is a subset of 'set', 
      // otherwise return false.
      public boolean isSubset(Set set) 
      {
          for(int i = 0; i &lt; this.members.size(); i++)
              if(!members.contains(this.members.get(i)))
                  return false;
  
          return true;
      }
  }
  </code></pre>