title: Java for loop and class definition
body: <p>Hey im very new at java so please bear with me :)</p>
  
  <p>I have objects v1, v2, v3 with each one containing details of soccer players stats</p>
  
  <pre><code>     int LessThan25 = 0;
       for (int i = 0; i &lt; topscorer.size(); i++)
       {
           while (v**[i]**.getGoals() &lt; 25)
           {
               LessThan25++;
           }
       }
  </code></pre>
  
  <p>My question is that how do I make this loop work? I want to be able to use the integers in the for loop for my while v loop which links to my class definition. (bolded part)</p>
  
  <p>Appreciate the help :)</p>