Accessing vectors' methods within a class
<p>I have a class that contains several vectors. Each of these vectors too contain vectors. The fields within these classes contain setters and getters for private strings.</p>

<p>I have one main class in which all the vectors are contained. I instantiate this class, and I need to access the fields that have been set within the vectors.</p>

<p>If the structure is like:</p>

<pre><code>public class a{
private Vector a, b, c;
}

private class b{
private Vector d, e, f;
}
</code></pre>

<p>All of those classes also have strings with setters and getters-- that is all.</p>

<p>Can I do something like this (assuming this object has vectors whose fields are populated--this is done in a separate part of the code with Digester, but I know this part is correct.)</p>

<pre><code>a myObject = new a;
Vector b = this.b;
for(int i=0;i&lt;b.size();i++){
    System.out.println(a.b.get(i).getmyString());
}
</code></pre>

<p>if so, how do I now access the methods within each class, b, whose vectors are d e and f?</p>

<p>Please help! :(</p>
