title: creating a method that can remove items from an arraylist and add them to another arraylist (under certain conditions)
body: <p>Hello i am writing a program that creates a method that can remove items from an arraylist and add them to another <code>ArrayList</code> (under certain conditions). This is the method I am supposed to create: </p>
  
  <p>A method called <code>giveAwayFish()</code> which represents a person
  returning his fish to the pond and/or giving them away to another fisher.</p>
  
  <p>It will go through all of this person's fish ( the one giving the fish away) and see if the other fisher ( the one who will be receiving the fish) is willing to keep any.   If the other fisher wants any, they are to be given to that fisher. If the fisher is unwilling to keep the fish, then these fish must be returned to the pond. </p>
  
  <p>I tried writing out this method about a hundred times and I can not for the life of me figure out what to do. I was able to remove all the fish from the persons array but I do not know how to add them back. This is what I need help with. </p>
  
  <p>Here is my code if it helps:</p>
  
  <pre><code>import java.util.*;
  
  public class Fisher   
  {
    private String name;
    private Fish [] fishCaught;
    private int numFishCaught; 
    private int keepSize;
    public static int LIMIT = 10;
  
    public String getName() 
    {
      return this.name;
    }
  
    public int getNumFishCaught()
    {
      return this.numFishCaught;
    }
  
    public int getKeepSize()
    {
      return this.keepSize;
    }
  
    public Fisher(String n, int k)
    {
      name = n;
      keepSize = k;
    }
  
    public String toString()
    {
      return(this.name + " with " + this.numFishCaught + " fish as follows:");
    }
    private ArrayList&lt;Fish&gt; fishesCaught = new ArrayList&lt;Fish&gt;();
  
  
    public void keep(Fish fish) 
    {
      if(this.numFishCaught &lt; LIMIT)
      {
        fishesCaught.add(fish);
        numFishCaught++;
      }
    }
  
    public boolean likes(Fish fish)
    {
      if(fish.size &gt;= this.keepSize &amp;&amp; fish.species != "Sunfish")
      {
        return true;
      }
  
      else 
      {
        return false;
      }
    }
  
    public void listFish() 
    {
      System.out.println(this.toString());
  
      for(Fish fish : fishesCaught)
      {
        System.out.println(fish.toString());
      }
    }
  
    public void goFishingIn(Pond pond)
    {
      Fish fish = pond.catchAFish();
  
      if(likes(fish))
      {
        this.keep(fish);
      }
      else
      {
        pond.add(fish);
      }
    }
  
    public void giveAwayFish(Fisher fisher, Pond pond)
    {
      Fish fish = fishesCaught;
       if(fisher.likes(fish))
       {
        fishesCaught.clear();
        this.numFishCaught = 0;
       }
  
    }
  
  
  } 
  </code></pre>