A small calculator in java