title: For Each Loop to return search string
body: <p>I'm having trouble with my JAVA command line menu. Here's what I've got.. what I want to do is in the comments. </p>
  
  <pre><code> private void listStudents(){
      out.println("\n\tStudent Listing");
      //Call datastore method that returns all student names as an array of strings
      String[] list = data.getStudents();
      //Display all names (use foreach statement)
      for (String name : list) {
  
      }
  }
  </code></pre>
  
  <p>here's the data store method I'm also stuck with... </p>
  
  <pre><code> String[] getStudents() {
      return (String[]) students.toArray();
  }
  
  // Method to return students who match search term
  String[] findStudents(String searchTerms) {
  // Use foreach loop to visit each item in students ArrayList,
  // and if the name matches the search term, add it to a new ArraList.
  // Then return the new ArrayList as a string array (see getStudents)
  }
  </code></pre>