iterate variable name in java(Tridium Baja)
<p>In Java, is there a way to iterate through a list of variables</p>

<p>(e.g. Avg1, Avg2, Avg3) replacing the number as a variable?  </p>

<p>I canNOT use an array, as they don't come through in the Tridium environment.  </p>

<p>I need something like this: </p>

<pre><code>for (i=1;i&lt;10;i++) {
    getAvg(i).setValue(5);
}
</code></pre>

<p>I have to use the following format in order to set the value:</p>

<pre><code>getVarName().setValue(value);
</code></pre>

<p>where VarName = name of variable, beginning with a capital letter
and value = value to set the variable to. </p>
