A simple calculator in java