Java Basic Calculator Project

I keep running into one error:

Calculator.java:1: error: ‘{’ expected
public class Calculator() {
^
1 error

Even though I have the expected { in the line. I am not sure what is wrong with it.

Java Classes do not take parameters. Remove the parenthesis () from your class declaration:

public class Calculator {
...
}
1 Like

Thank you for yout help!