I don't understand why that statement gives that error.
The variable: product is an array of Product not an array of String.
I can't see the screen of your IDE to see what it is saying. The javac compiler gives good error messages that can be copy and pasted here.
The message should show the source with a ^ under the location of the error.
Here is a sample from the javac compiler:
TestSorts.java:138: cannot find symbol
symbol : variable var
location: class TestSorts
var = 2;
^
The error shows a String array being passed in the setName() method. Where is the code that passes an array to setName()?
Are you confusing what program you are working on? This statement:
product1.setName(product);
would give the error message you have posted if
product1 is a String
and product is an array of String.