a simple calculator in java