create object object in java confusion
<p>hello everyone I am newto programming and I am just a little bit confused. I have three files in java</p>

<p><code>Product.java</code> this file defines the product attributes like product name, quantity, ID 
in this file i dont have a main </p>

<p><code>ProductCollection.java</code>
this file create a vector to hold data temporarily when accessing database</p>

<p><code>Database.java</code>
database connection</p>

<p><code>EServer</code>
communicate with client and retrieve access database </p>

<pre><code>rs = query.executeQuery(queryString);
pColl = new ProductCollection();&lt;-------------------confuse
product extractedProduct; &lt;------------------------ confuse
while(rs.next())
{

    extractedProduct = (Product).addProduct(rs);
    // Object [ ] extractedProduct  = ProductCollection.addProduct(rs);
}
</code></pre>

<p>EClient.java</p>

<p>can someone explain this two line please </p>

<pre><code>[ pColl = new ProductCollection();] [ product extractedProduct;]
</code></pre>

<p>also I am struggling to add an object to store the result temporary. Can someone help me please I want extract out the contents of a row and set up a Product object <code>extractedProduct</code></p>
