I\'m fairly new to Java and trying to figure out how to solve the following error:
CalculatorWithMemory.java:1: class Calculator is publi
As the error message implies, if you declare a class as public, it needs its own .java file. If you don't want to do that, then don't define it as public.
public