java : How to deal with an array of values received in this case?
<p>I am working on a Third Party API where, if one symbol is given we will make the request this way as </p>

<pre><code>KIMapi = new KIMapi(symbol);
KIMapi .setType(KIMapi .TIME );
ArrayList list = KIMapi .getData(); 
Iterator itr = list.iterator();
while(itr.hasNext())
{
    system.out.println(itr.next());
    // Process it 
}
</code></pre>

<p>Now my query is that I may receive an array of Symbols as shown below:</p>

<pre><code>String  symbol[] = {"BBW","MAruthi", "S" , "G" };

for (int i = 0;i &lt; symbol.length;i++ )
{
    KIMapi  = new KIMapi (symbol[i]);

    // Do i need to keep all the above code shown above inside this for loop ?
}
</code></pre>

<p>Any guidance will help.</p>
