A simple calculator programmed in Java