Simple basic calculator in Java