Java Sort ArrayList inside an ArrayList : <p>Im having some issues sorting a ArrayList that contains ArrayLists</p>

<pre><code>ArrayList&lt;ArrayList&lt;String&gt;&gt; multiMarkArray = new ArrayList&lt;ArrayList&lt;String&gt;&gt;();

String line;
while ((line = bufRdr.readLine()) != null) {
    ArrayList&lt;String&gt; singleMarkArray = new ArrayList&lt;String&gt;();
    for (String word : line.split(" ")) {
        singleMarkArray.add(word);
    }
    Collections.swap(singleMarkArray, 0, 1);
    multiMarkArray.add(singleMarkArray);
}

Collections.sort(multiMarkArray);
System.out.println(multiMarkArray);
</code></pre>

<p>Im getting the error <strong>Collections</strong> cannot be applied to (java.util.ArrayList>)</p>

<p>Can someone point me in the right direction to solving this issue?</p>

<p>Thanks</p>
