Java: how to allow choose a variable depending on parameter passed?
<p>This is my class:</p>

<pre><code>class StockQuote {

Float[] high, low, close, open;

public float GetMax(String choose_data_type) {
    if data_type="high" {
        Routine_Searchmax(high)
    } elseif strdata_type="low" {
        Routine_Searchmax(low)
    }
}
private float Routine_Searchmax(float[] variable) {
   // here i search max value into my array
}
}
</code></pre>

<p>My Question is: it is possible to pass a string variable with <em>the name of a variable array</em>, then .. work on that specific variable ?
Is there a way to do that ? 
Thanks</p>
