title: How to add object to array in the other class, Java
body: <p>How to add object to array in an other class?
  This is my code:</p>
  <pre><code>public class One
  {
     //Loots is a class  
     public static Loots[] lootsList = new Loots[] { };
  }   
   
  public class Two
  { 
     Loots MyLoots = new Loots();         
     // How to add MyLoots to lootsList in THIS class? 
  }
  </code></pre>
  <p><em>I don't want to use List</em></p>