whats this error

for a question i was getting this error when the java code was run in command prompt.

operator * cannot be applied to int,double[]
i just did variableName=abc; where all the variables have been initialized.

same for “operator * cannot be applied to int,int[]”

The error msg you specified usually comes when you multiply two things, one of them a simple integer and the other an array. Multiplication of an integer and an array is not defined in Java.

Check the line number in which the error msg appears, and see if this indeed is the case.