title: How to use linked list as an interface argument in Java
body: <p>I'm trying to create an interface with an Array list of an abstarct class objects ,but i had no luck so far.What i'm trying to do is this :</p>
  <pre><code> interface aoeSkill&lt;ArrayList&lt;Unit&gt; &gt;
  {
      void aoeAttack(ArrayList&lt;Unit&gt; );
  }
  
  class Name extends Unit implements aoeSkill&lt;ArrayList&lt;Unit&gt; &gt; {
       
        public void aoeAttack (ArrayList&lt;Unit&gt; unitsList)
         {
           this.aoeAttackObj.aoeAttackAct(this.getUnitsWithinRange());
         }
  
   }
  </code></pre>
  <p>What i get is multiple errors , at the interface declaration.Any advice would be gratly appreciated!</p>