Update Invert.java