Simple calculator built in java