title: Tester class doesn't think my ArrayList is an ArrayList
body: <p>I'm trying to create an ArrayList of type Item in my Store class and then test it in another class called StoreTester. I keep getting the error: The method get() is undefined for the type Store. So Java thinks my tester object of type Store is not an ArrayList even though I tried to make it so. 
  My Store class constructor:</p>
  
  <pre><code>import java.util.ArrayList;
  public class Store
  {
  
    private ArrayList&lt;Item&gt; blockbuster;
  
    public Store(){
      blockbuster = new ArrayList&lt;Item&gt;();
    }
  
    public void addItem(Item i){
      blockbuster.add(i);
    }
  }
  </code></pre>
  
  <p>This is my StoreTester class:</p>
  
  <pre><code>import java.util.ArrayList;
  public class StoreTester{
    public static void main(String[] args){
  
      Store videostore = new Store();
  
  System.out.print(videostore.toString());
  System.out.print(videostore.get(0));
  }
  }
  </code></pre>
  
  <p>For some reason videostore.toString() works fine and prints out the list of objects I've added to it. Here is the method toString I wrote in my Store class:</p>
  
  <pre><code>public String toString(){
      String item = "Items in store: " + "\n";
      for(int j = 0; j &lt; blockbuster.size(); j++){
        item = item + blockbuster.get(j).getTitle() + "\n";
      }
      return item;
    } 
  </code></pre>
  
  <p>but as soon as I try to get() a specific object at an index or even use videostore.size(), i get the: method undefined error. Hopefully it is just a syntax error or something simple I've overlooked. Any help is appreciated. </p>