Challenge 5: Implement a Calculator Class
In this exercise, you have to implement a calculator which can perform addition, subtraction, multiplication, and division.
We'll cover the following...
Problem Statement
Write a Java class called Calculator
with
-
private
fields:num1
andnum2
(double type)
And methods:
-
add()
, a method ...