Update Cube.java

fix