0

So I should declare the array like this

String[] product = new String[100];

Err... I still don't know how to implement the methods.

Could you please tell why I couldn't use the the constructor the way I implemented it.

0
Product[] product = new Product[100];

because in your constructor you initialize fields which you didn't declare.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.