title: How can I sort an ArrayList of Strings in Java?
body: <p>I have <code>String</code>s that are put into an <code>ArrayList</code> randomly.</p>
  
  <pre><code>private ArrayList&lt;String&gt; teamsName = new ArrayList&lt;String&gt;();
  String[] helper; 
  </code></pre>
  
  <p>For example:</p>
  
  <pre><code>teamsName.add(helper[0]) where helper[0] = "dragon";   
  teamsName.add(helper[1]) where helper[1] = "zebra";   
  teamsName.add(helper[2]) where helper[2] = "tigers" // and so forth up to about 150 strings.
  </code></pre>
  
  <p>Given the fact that you cannot control the inputs (i.e. string that is coming into the ArrayList is random; zebra or dragon in any order), once the ArrayListis filled with inputs, how do I sort them alphabetically excluding the first one?</p>
  
  <p><code>teamsName[0]</code> is fine; sort <code>teamsName[1 to teamsName.size]</code> alphabetically.</p>