A simple Java calculator