title: Sort() "cannot find symbol"
body: <p>Okay i got some issue with the <code>Collection.sort(myintarray);</code> line... it says <code>cannot find symbol</code> trying to make it sort the list so the lowest number in array come first.</p>
  
  <pre><code>package uppgift.pkg1;
  
  import java.util.ArrayList;
  import java.util.Collection;
  import java.util.List;
  import java.util.Arrays;
  
  /**
   * @author Fredrik
   *
   */
  public class Uppgift1 {
  
      public static void main(String[] args) {
          //Anrop av metod
          skapaArray();
      }
  
      public static void skapaArray() {
          List&lt;Integer&gt; myintarray = new ArrayList&lt;Integer&gt;();
          int ints = 0;
          int size = 1;
  
          while (ints &lt; size) {
              myintarray.add(ints);
              ints++;
          }
          Collection.sort(myintarray);
          System.out.println(myintarray.size());
      }
  }
  </code></pre>