How to find the index of an arraylist in an arraylist?
<p>I have an ArrayList of ArrayLists of T, and I am trying to find the index of the ArrayList that contains a certain object</p>

<pre><code>private int indexOfItem(T item)
{
    int index = 10000;

    for(int i = 0; i &lt; bigList.size(); i++)
    {
        if(bigList.get(i).contains(item))
        {
            index = i;
        }

    }
    return index;
}
</code></pre>

<p>this works but is there a better way to do this using the indexOf() method that arrayLists have?</p>