Basic calculator built using Java