itrerate through list of lists
<p>so i have a lists within a list. i'm trying to grab the lists that are within this list. i know i can get the outer list data as seen bellow. But how do i grab the data for all the lists inside the outer list? </p>

<p>this is what i have:</p>

<pre><code>public void iterateThroughList()
{
    Iterator&lt;Test1&gt; itr = databaseList.iterator();

    if (itr != null)
    {
        while (itr.hasNext())
        {
            Test1 test1= itr.next();

            System.out.println(test1.getName());
                            // set up itr2 to point to list within list??? how do i set this guy up?

            if(itr2 != null)
            {
                while(itr2.hasNext())
                {


                }
            }
        }
    }
}
</code></pre>
