A simple calculator in Java