Java imitation Windows calculator