title: how to search through an array using specific parameters
body: <pre class="lang-java prettyprint-override"><code>package Part01;
  
  import java.util.ArrayList;
  
  public class MP3Player implements iPlayer {
      private ArrayList&lt;Tune&gt; soundData;
      
      
      public MP3Player() {
          soundData =  new ArrayList&lt;Tune&gt;();
          
      }
  
  
      public boolean addTune(String title, String artist, int duration, Genre gen) {
          return true;
      }
  
      public String[] getTuneInfo() {
          return null;
      
      }
  
      public String[] getTuneInfo(Genre gen) {
          return null;
      }
  }
  </code></pre>
  <p>how can i return an array for Tune objects for a specific genre specified by the String parameter.</p>