Question: Define a Java class named Accumulator. The class contains the following elements:
a. An integer variable named total.
b. A method named getTotal() that returns the value of total. This method does not take any arguments.
c. A method named add() that takes one integer argument. This method increases the value of total by the value of the argument. This method does not return any value.