Hi, I'm writing a Java application. The program utilizes methods in classes separate from the main class. When I try to run it, I get an error. This is the error:
The code that it points to is the place where I call the methods from inside a switch() statement. It cites 4 different examples but they are all the same, just different method names. Here is just one of the ones that it finds the error with:
imaginary.addition(int a1,int b1,int a2,int b2);
In the imaginary class, I implement the addition method like follows:
public void addition(int a1,int b1,int a2,int b2)
I can't understand what the error is asking for. Everything seems fine to me. Could someone please help me out with what it wants? If you need the whole code just let me know and I will readily post it.
Thanks.