Update Accumulator.java

-order of operations
-negative handling