Update methods.java