Update Accumulator.java

test function