Update calculate.java