no suitable method for sort error
<pre><code>import java.util.Scanner;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Collection;

public class ClearlyAnArrayList
{
    public static void main(String[] args){
        Scanner kb=new Scanner(System.in);
        ArrayList&lt;Integer&gt;ints=new ArrayList&lt;Integer&gt;();
        int num=kb.nextInt();
            while(num!=-1){
            ints.add(num);
            }
    sortPrint(ints);
}

    public static void sortPrint(Collection&lt;Integer&gt;ints){
        Collections.sort(ints);
        for(Integer i:ints){
        System.out.printf("%d\n",i);
        }
}
}
</code></pre>

<blockquote>
  <p>This is the code I'm compiling with blueJ When I compile it I get a
  lengthy error which starts off "<code>no suitable method for
  sort(java.util.Collection&lt;java.lang.Integer&gt;)</code>" and then goes on to
  say more stuff I don't understand.</p>
</blockquote>

<p>The solution to this was that I was using a List which is not a collection and <code>Collections.sort()</code> expects a List</p>

<blockquote>
  <p>Also is there a better way than singular <code>import</code> statements for all
  my utils?</p>
</blockquote>

<p>The solution given was </p>

<pre><code>import java.util.*;
</code></pre>
