In the following code, I need to return p without instantiating a new product.

Code:`public Product getProduct(int pid) {`

for (Product p:this) {

if (p.productID == pid) {

return p;

}

}

}

Is it possible to get around this problem without instantiating a new Product?

This gives me variable may not have been initialized error:

Code:`public Product getProduct(int pid) {`

Product found;

for (Product p:this) {

if (p.productID == pid) {

found = p;

}

}

return found;

}