title: How to return one by one from ArrayList
body: <p>I have arraylist say,</p>
  
  <pre><code>List&lt;CalendarOutput&gt; RecuringEve= Recurrent.eventView(component,begin,end);
  </code></pre>
  
  <p>and i want to print the arraylist,</p>
  
  <pre><code>CalendarOutput caldavOutput = ListUtil.getReComponent(component, RecuringEve);
  </code></pre>
  
  <p>here i have method getReComponent(component, RecuringEve)</p>
  
  <pre><code>public CalendarOutput getReComponent(Component component, List recuringEve) {
  for(int i = 0; i &lt; recuringEve.size(); i++)   {  
    CalendarOutput.DTSTART_FULL=recuringEve.get(i).toString();
   }
  retrun CalendarOutput;
  }
  </code></pre>
  
  <p>This method must return value one by one. but it return only the last value of the Arraylist. how can return value one by one</p>