how to i string productname instead of int id
<pre><code>public Product getAllProductName (string productname  ) 
{
    for(int i =0; i&lt; allproducts.size(); i++)
    {
        Product tempproductname = allproducts.get(i);
        if(tempproductname.getProductID() == id)
            return tempproductname;
    }

    return null;
} 
</code></pre>

<p>hi experts,</p>

<p>i am doing software designing by implementing this codes (using vectors and controllers) but i am stuck instead of getting string productname i get int , any help experts?? thank!!!!</p>
