I\'m fairly new to Java and trying to figure out how to solve the following error:
CalculatorWithMemory.java:1: class Calculator is publi
If you want more than one class in the same file then you are supposed to be writing only one class to be public which has same name as file.
All the other classes you can define as "class abc{}" or using other modifier then public.