I have a class named Dish
that contains this constructor
public Dish(int dishNum, String dishName, String[] dishGoods) {
this.dishNum=dishNum;
this.dishName=dishName;
this.dishGoods=dishGoods;
}
When I try to create a new Dish
I can't seem to get the right parameters constructor for creating a new object of type Dish
.
I can set dishNum
and dishName
without a problem but I can't create the
String[] dishGoods
What would be the right approach for creating dishGoods
array of String
?