Calculator demo built in java