title: How to return a new ArrayList?
body: <p>I have an ArrayList: </p>
  
  <pre><code>ArrayList&lt;Student&gt; studentList = new ArrayList&lt;Student&gt;();
  </code></pre>
  
  <p>Which is populated from a text file, with five pieces of information per object. </p>
  
  <p>One of the pieces of information is the "grade". I want to print all the students in a specific grade. My current method only shows the first instance of the student with in the grade. With "[]" around that one. </p>
  
  <pre><code>public ArrayList&lt;Student&gt; studentInGrade(String category) {
      ArrayList&lt;Student&gt; gradeCategory = new ArrayList&lt;Student&gt;();
      for (Student stu : studentList ) {
          if (stu.GetCategory().toUpperCase().contains(category.toUpperCase())) {
              System.out.println("Found");
              gradeCategory .add(stu );
              return gradeCategory ;
          }
      }
  
      System.out.println("No Category Found");
      return null;
  }
  </code></pre>
  
  <p>Example: </p>
  
  <p>I want to see all the students who are "junior".</p>
  
  <p>Example Input:</p>
  
  <pre><code>Johnny Johns
  Computer Science
  Junior
  21
  In-State
  Asheley Ashers
  Nursing
  Sophomore
  20
  In-State
  Andrew Anders
  Basket Weaving
  Graduate Student
  18
  Out-State
  Morgan Freeman
  Theater
  Junior
  21
  In-State
  </code></pre>
  
  <p>What I want to output:</p>
  
  <pre><code>Johnny Johns
  Computer Science
  Junior
  21
  In-State
  Morgan Freeman
  Theater
  Junior
  21
  In-State
  </code></pre>
  
  <p>What outputs currently:</p>
  
  <pre><code>[Johnny Johns
  Computer Science
  Junior
  21
  In-State]
  </code></pre>