title: How do I print this for loop in another class and how do I return its value?
body: <p>Okay, so I have this class that creates an array of student profiles with five using a multi argument constructor while the last using a zero argument constructor. Then I set each value of the array to one of the student profiles and I used a for loop to traverse the array. </p>
  
  <p>My question is how do I use the array to return that value back to the method so I can call it from a different class to print? What tactic should I do because I'm not exactly sure how to do this with toString() and I'm kind of a new to all of this. Probably not best to do System.out.println for this but this is all I know what to do. </p>
  
  <p>Furthermore, when i compile it says that they are incompatible types. That is why this isn't going through and I don't know how to put this back into a string instead of an int(?)</p>
  
  <pre><code>public class Applicants
  {
     private Application[] applicant;
     public String Applicants()
     {
      Application student1 = new Application("Blair", "C", "Bass");
      Application student2 = new Application("Daniel", "R", "Humphrey");
      Application student3 = new Application("Charlie", "L", "Trout");
      Application student4 = new Application("Damascus", "L", "Roberto");
      Application student5 = new Application("Sofia", "M", "Montrone");
      Application student6 = new Application();
  
      applicant[0] = student1;
      applicant[1] = student2;
      applicant[2] = student3;
      applicant[3] = student4;
      applicant[4] = student5;
      applicant[5] = student6;
  
      for (int index = 0; index &lt; applicant.length; index++)
      {   
           return System.out.println(applicant[index]);
      }
  
  }
  </code></pre>
  
  <p>}</p>