I created these lines of code in a Java exercise ...
public class Pizza {
...
public Pizza (String nomeDestaPizza, String[] arrayIngredientes) {
...
}
}
public static void main(String[] args) {
...
Pizza pizza1 = new Pizza("americana", "molho de tomate", "mussarela", "presunto", "tomate", "azeitona");
...
}
In the line I created an instance of the Pizza class (pizza1) this error message is displayed in the Eclipse IDE:
Multiple markers at this line
- Line breakpoint: Main [line: 7] - main (String [])
- The Pizza constructor (String, String, String, String) is undefined.
Would anyone know what could be happening and how can I resolve it?