title: How do I pass objects along from my Main class to other classes
body: <p>I'm learning to code java and I encountered some problems in which I could use help understanding how things work.</p>
  
  <p>I've made a list containing "Images", on my Main class, called "myList".</p>
  
  <pre><code>public class Main{
  
   public static void main(String[] args) {
    List&lt;Images&gt; myList = new ArrayList&lt;Images&gt;();
    ...
  </code></pre>
  
  <p>And I want to access it on this "System" class. But it doesn't seem to let me.
  The plan is to access a position (the 3rd, in this example) on the given list (list.get(2)).
  So I created the method "work".</p>
  
  <pre><code>//Example    
  public class System{
  public static boolean work(List&lt;Images&gt; list){
      if( list.get(2).equals(Something) )
          return false;
      else ... return true;
  }   
  </code></pre>
  
  <p>On this same System class I'm trying to use the method "work", giving it the List that I created on my Main class (myList).</p>
  
  <pre><code>public class System{
  ...
  if( work(myList) ) //Don't know how to reffer to myList
   return something;
  </code></pre>
  
  <p>Gives me the error "myList cannot be resolved to a variable".
  So the problem is how to reffer to the list I made on my Main, named "myList".</p>
  
  <p>Not sure if I explained that too well but any suggestions?</p>