title: Printing an ArrayList of Integers top to bottom and returning each element as a String
body: <p>I've created a function to print values from an ArrayList and it works, however, it prints them left to right and I want them to be printed top to bottom.</p>
  
  <p>My method for doing this is here:</p>
  
  <pre><code>ArrayList&lt;Integer&gt; scoresFromRounds = new ArrayList&lt;Integer&gt;();
  public String printSortedScoreList()
      {
          sortScoreList();
          String scores = scoresFromRounds.toString();
          return scores;
      }
  </code></pre>
  
  <p>I've looked around and this kind of thing seems to be working for others:</p>
  
  <pre><code>for (Object o : exes)
      System.out.println(o);
  </code></pre>
  
  <p>However, when I tried to do it like</p>
  
  <pre><code>for (Integer score : scoresFromRounds)
  {
  
  }
  </code></pre>
  
  <p>I'm not entirely sure what to put in the body of the for each, as I need this function to return a String as I then use it to display the scores within a label, and labels only accept Strings.</p>
  
  <p>Does anyone have any idea on how I could achieve this?</p>
  
  <p>Thanks</p>
  
  <p>Edit:</p>
  
  <p>By top to bottom, I mean something like</p>
  
  <pre><code>10
  
  20
  
  30
  
  40
  
  50
  </code></pre>