Update compute.java